Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsHTMLTableRowElement.cpp File Reference
#include "nsIDOMHTMLTableRowElement.h"
#include "nsIDOMHTMLTableElement.h"
#include "nsIDOMHTMLTableSectionElem.h"
#include "nsIDOMHTMLTableCellElement.h"
#include "nsIDOMEventReceiver.h"
#include "nsDOMError.h"
#include "nsMappedAttributes.h"
#include "nsGenericHTMLElement.h"
#include "nsContentList.h"
#include "nsHTMLAtoms.h"
#include "nsStyleConsts.h"
#include "nsPresContext.h"
#include "nsHTMLParts.h"
#include "nsRuleData.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIFrame.h"

Go to the source code of this file.


class  nsHTMLTableRowElement


 IsCell (nsIContent *aContent, PRInt32 aNamespaceID, nsIAtom *aAtom, const nsAString &aData)
static void MapAttributesIntoRule (const nsMappedAttributes *aAttributes, nsRuleData *aData)

Function Documentation

IsCell ( nsIContent aContent,
PRInt32  aNamespaceID,
nsIAtom aAtom,
const nsAString &  aData 

Definition at line 259 of file nsHTMLTableRowElement.cpp.

  nsIAtom* tag = aContent->Tag();

  return ((tag == nsHTMLAtoms::td || tag == nsHTMLAtoms::th) &&

Here is the caller graph for this function:

static void MapAttributesIntoRule ( const nsMappedAttributes aAttributes,
nsRuleData aData 
) [static]

Definition at line 418 of file nsHTMLTableRowElement.cpp.

  if (aData->mSID == eStyleStruct_Position) {
    // height: value
    if (aData->mPositionData->mHeight.GetUnit() == eCSSUnit_Null) {
      const nsAttrValue* value = aAttributes->GetAttr(nsHTMLAtoms::height);
      if (value && value->Type() == nsAttrValue::eInteger)
        aData->mPositionData->mHeight.SetFloatValue((float)value->GetIntegerValue(), eCSSUnit_Pixel);
      else if (value && value->Type() == nsAttrValue::ePercent)
  else if (aData->mSID == eStyleStruct_Text) {
    if (aData->mTextData->mTextAlign.GetUnit() == eCSSUnit_Null) {
      // align: enum
      const nsAttrValue* value = aAttributes->GetAttr(nsHTMLAtoms::align);
      if (value && value->Type() == nsAttrValue::eEnum)
        aData->mTextData->mTextAlign.SetIntValue(value->GetEnumValue(), eCSSUnit_Enumerated);
  else if (aData->mSID == eStyleStruct_TextReset) {
    if (aData->mTextData->mVerticalAlign.GetUnit() == eCSSUnit_Null) {
      // valign: enum
      const nsAttrValue* value = aAttributes->GetAttr(nsHTMLAtoms::valign);
      if (value && value->Type() == nsAttrValue::eEnum)
        aData->mTextData->mVerticalAlign.SetIntValue(value->GetEnumValue(), eCSSUnit_Enumerated);

  nsGenericHTMLElement::MapBackgroundAttributesInto(aAttributes, aData);
  nsGenericHTMLElement::MapCommonAttributesInto(aAttributes, aData);

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 138 of file nsHTMLTableRowElement.cpp.

  *aSection = nsnull;

  nsCOMPtr<nsIDOMNode> sectionNode;
  nsresult rv = GetParentNode(getter_AddRefs(sectionNode));
  if (NS_SUCCEEDED(rv) && sectionNode) {
    rv = CallQueryInterface(sectionNode, aSection);

  return rv;

Here is the call graph for this function: