Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsHTMLCSSStyleSheet.cpp File Reference
#include "nsIHTMLCSSStyleSheet.h"
#include "nsCRT.h"
#include "nsIAtom.h"
#include "nsIURL.h"
#include "nsISupportsArray.h"
#include "nsCSSPseudoElements.h"
#include "nsIStyledContent.h"
#include "nsIStyleRule.h"
#include "nsIFrame.h"
#include "nsICSSStyleRule.h"
#include "nsIStyleRuleProcessor.h"
#include "nsPresContext.h"
#include "nsIDocument.h"
#include "nsCOMPtr.h"
#include "nsRuleWalker.h"
#include "nsRuleData.h"

Go to the source code of this file.

Classes

class  CSSDisablePropsRule
class  CSSFirstLineRule
class  CSSFirstLetterRule
class  HTMLCSSStyleSheetImpl

Functions

 NS_IMPL_ISUPPORTS3 (HTMLCSSStyleSheetImpl, nsIHTMLCSSStyleSheet, nsIStyleSheet, nsIStyleRuleProcessor) NS_IMETHODIMP HTMLCSSStyleSheetImpl
nsresult NS_NewHTMLCSSStyleSheet (nsIHTMLCSSStyleSheet **aInstancePtrResult, nsIURI *aURL, nsIDocument *aDocument)
nsresult NS_NewHTMLCSSStyleSheet (nsIHTMLCSSStyleSheet **aInstancePtrResult)

Function Documentation

Definition at line 410 of file nsHTMLCSSStyleSheet.cpp.

{
  nsIStyledContent* styledContent = aData->mStyledContent;
  
  if (styledContent) {
    // just get the one and only style rule from the content's STYLE attribute
    nsICSSStyleRule* rule = styledContent->GetInlineStyleRule();
    if (rule)
      aData->mRuleWalker->Forward(rule);
  }

  return NS_OK;
}

Here is the call graph for this function:

nsresult NS_NewHTMLCSSStyleSheet ( nsIHTMLCSSStyleSheet **  aInstancePtrResult,
nsIURI aURL,
nsIDocument aDocument 
)

Definition at line 620 of file nsHTMLCSSStyleSheet.cpp.

{
  nsresult rv;
  nsIHTMLCSSStyleSheet* sheet;
  if (NS_FAILED(rv = NS_NewHTMLCSSStyleSheet(&sheet)))
    return rv;

  if (NS_FAILED(rv = sheet->Init(aURL, aDocument))) {
    NS_RELEASE(sheet);
    return rv;
  }

  *aInstancePtrResult = sheet;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 638 of file nsHTMLCSSStyleSheet.cpp.

{
  if (aInstancePtrResult == nsnull) {
    return NS_ERROR_NULL_POINTER;
  }

  HTMLCSSStyleSheetImpl*  it = new HTMLCSSStyleSheetImpl();

  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  NS_ADDREF(it);
  *aInstancePtrResult = it;
  return NS_OK;
}

Here is the call graph for this function: