Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsGenericHTMLElement.cpp File Reference
#include "nscore.h"
#include "nsGenericHTMLElement.h"
#include "nsCOMPtr.h"
#include "nsIAtom.h"
#include "nsINodeInfo.h"
#include "nsIContentViewer.h"
#include "nsICSSParser.h"
#include "nsICSSLoader.h"
#include "nsICSSStyleRule.h"
#include "nsCSSStruct.h"
#include "nsCSSDeclaration.h"
#include "nsIDocument.h"
#include "nsIDocumentEncoder.h"
#include "nsIDOMHTMLBodyElement.h"
#include "nsIDOMHTMLDocument.h"
#include "nsIDOMAttr.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMNamedNodeMap.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMDocumentFragment.h"
#include "nsIDOMNSHTMLDocument.h"
#include "nsIDOMNSHTMLElement.h"
#include "nsIDOMElementCSSInlineStyle.h"
#include "nsIDOMWindow.h"
#include "nsIDOMDocument.h"
#include "nsIEventListenerManager.h"
#include "nsIFocusController.h"
#include "nsMappedAttributes.h"
#include "nsHTMLStyleSheet.h"
#include "nsIHTMLDocument.h"
#include "nsILink.h"
#include "nsILinkHandler.h"
#include "nsPIDOMWindow.h"
#include "nsIStyleRule.h"
#include "nsISupportsArray.h"
#include "nsIURL.h"
#include "nsNetUtil.h"
#include "nsEscape.h"
#include "nsStyleConsts.h"
#include "nsIFrame.h"
#include "nsIScrollableFrame.h"
#include "nsIScrollableView.h"
#include "nsIScrollableViewProvider.h"
#include "nsRange.h"
#include "nsIPresShell.h"
#include "nsPresContext.h"
#include "nsIDocShell.h"
#include "nsIView.h"
#include "nsIViewManager.h"
#include "nsINameSpaceManager.h"
#include "nsDOMError.h"
#include "nsIScriptGlobalObject.h"
#include "nsIScriptLoader.h"
#include "nsRuleData.h"
#include "nsPresState.h"
#include "nsILayoutHistoryState.h"
#include "nsHTMLParts.h"
#include "nsContentUtils.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsLayoutAtoms.h"
#include "nsHTMLAtoms.h"
#include "nsIEventStateManager.h"
#include "nsIDOMEvent.h"
#include "nsIDOMNSEvent.h"
#include "nsIPrivateDOMEvent.h"
#include "nsDOMCID.h"
#include "nsIServiceManager.h"
#include "nsDOMCSSDeclaration.h"
#include "nsICSSOMFactory.h"
#include "prprf.h"
#include "prmem.h"
#include "nsITextControlFrame.h"
#include "nsIForm.h"
#include "nsIFormControl.h"
#include "nsIDOMHTMLFormElement.h"
#include "nsILanguageAtomService.h"
#include "nsIDOMMutationEvent.h"
#include "nsMutationEvent.h"
#include "nsIBindingManager.h"
#include "nsXBLBinding.h"
#include "nsRuleWalker.h"
#include "nsIObjectFrame.h"
#include "xptinfo.h"
#include "nsIInterfaceInfoManager.h"
#include "nsIParser.h"
#include "nsParserCIID.h"
#include "nsIHTMLContentSink.h"
#include "nsLayoutCID.h"
#include "nsContentCID.h"
#include "nsIDOMText.h"
#include "nsITextContent.h"
#include "nsCOMArray.h"
#include "nsNodeInfoManager.h"
#include "nsIEditor.h"

Go to the source code of this file.

Classes

class  nsGenericHTMLElementTearoff

Functions

static NS_DEFINE_CID (kCSSOMFactoryCID, NS_CSSOMFACTORY_CID)
static PRBool IsBody (nsIContent *aContent)
static PRBool IsOffsetParent (nsIContent *aContent)
static PRBool IsArea (nsIContent *aContent)

Variables

static nsICSSOMFactorygCSSOMFactory = nsnull
static const nsAttrValue::EnumTable kDirTable []
static const nsAttrValue::EnumTable kAlignTable []
static const nsAttrValue::EnumTable kDivAlignTable []
static const nsAttrValue::EnumTable kFrameborderTable []
static const nsAttrValue::EnumTable kScrollingTable []
static const nsAttrValue::EnumTable kTableVAlignTable []
static const nsAttrValue::EnumTable kTableHAlignTable []
static const nsAttrValue::EnumTable kCompatTableHAlignTable []
static const nsAttrValue::EnumTable kTableCellHAlignTable []
static const nsAttrValue::EnumTable kCompatTableCellHAlignTable []

Function Documentation

static PRBool IsArea ( nsIContent aContent) [static]

Definition at line 1505 of file nsGenericHTMLElement.cpp.

{
  nsINodeInfo *ni = aContent->GetNodeInfo();

  return (ni && ni->Equals(nsHTMLAtoms::area) &&
          aContent->IsContentOfType(nsIContent::eHTML));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool IsBody ( nsIContent aContent) [static]

Definition at line 586 of file nsGenericHTMLElement.cpp.

{
  nsINodeInfo *ni = aContent->GetNodeInfo();

  return (ni && ni->Equals(nsHTMLAtoms::body) &&
          aContent->IsContentOfType(nsIContent::eHTML));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool IsOffsetParent ( nsIContent aContent) [static]

Definition at line 595 of file nsGenericHTMLElement.cpp.

{
  nsINodeInfo *ni = aContent->GetNodeInfo();

  return (ni && (ni->Equals(nsHTMLAtoms::td) ||
                 ni->Equals(nsHTMLAtoms::table) ||
                 ni->Equals(nsHTMLAtoms::th)) &&
          aContent->IsContentOfType(nsIContent::eHTML));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kCSSOMFactoryCID  ,
NS_CSSOMFACTORY_CID   
) [static]

Variable Documentation

Definition at line 237 of file nsGenericHTMLElement.cpp.

Initial value:

Definition at line 2621 of file nsGenericHTMLElement.cpp.

Initial value:
 {
  { "left",   NS_STYLE_TEXT_ALIGN_LEFT },
  { "right",  NS_STYLE_TEXT_ALIGN_RIGHT },
  { "center", NS_STYLE_TEXT_ALIGN_CENTER },
  { "char",   NS_STYLE_TEXT_ALIGN_CHAR },
  { "justify",NS_STYLE_TEXT_ALIGN_JUSTIFY },
  { "abscenter", NS_STYLE_TEXT_ALIGN_CENTER },
  { "absmiddle", NS_STYLE_TEXT_ALIGN_CENTER },
  { "middle", NS_STYLE_TEXT_ALIGN_CENTER },
  { 0 }
}

Definition at line 2587 of file nsGenericHTMLElement.cpp.

Initial value:
 {
  { "ltr", NS_STYLE_DIRECTION_LTR },
  { "rtl", NS_STYLE_DIRECTION_RTL },
  { 0 }
}

Definition at line 492 of file nsGenericHTMLElement.cpp.

Initial value:

Definition at line 2531 of file nsGenericHTMLElement.cpp.

Initial value:
 {
  { "yes", NS_STYLE_FRAME_YES },
  { "no", NS_STYLE_FRAME_NO },
  { "1", NS_STYLE_FRAME_1 },
  { "0", NS_STYLE_FRAME_0 },
  { 0 }
}

Definition at line 2540 of file nsGenericHTMLElement.cpp.

Initial value:
 {
  { "yes", NS_STYLE_FRAME_YES },
  { "no", NS_STYLE_FRAME_NO },
  { "on", NS_STYLE_FRAME_ON },
  { "off", NS_STYLE_FRAME_OFF },
  { "scroll", NS_STYLE_FRAME_SCROLL },
  { "noscroll", NS_STYLE_FRAME_NOSCROLL },
  { "auto", NS_STYLE_FRAME_AUTO },
  { 0 }
}

Definition at line 2548 of file nsGenericHTMLElement.cpp.

Initial value:

Definition at line 2612 of file nsGenericHTMLElement.cpp.

Initial value:
 {
  { "left",   NS_STYLE_TEXT_ALIGN_LEFT },
  { "right",  NS_STYLE_TEXT_ALIGN_RIGHT },
  { "center", NS_STYLE_TEXT_ALIGN_CENTER },
  { "char",   NS_STYLE_TEXT_ALIGN_CHAR },
  { "justify",NS_STYLE_TEXT_ALIGN_JUSTIFY },
  { 0 }
}

Definition at line 2577 of file nsGenericHTMLElement.cpp.

Initial value:

Definition at line 2559 of file nsGenericHTMLElement.cpp.