diff options
Diffstat (limited to 'WebCore/html/HTMLTableElement.h')
-rw-r--r-- | WebCore/html/HTMLTableElement.h | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/WebCore/html/HTMLTableElement.h b/WebCore/html/HTMLTableElement.h index 7f1e747..0189ce4 100644 --- a/WebCore/html/HTMLTableElement.h +++ b/WebCore/html/HTMLTableElement.h @@ -36,11 +36,8 @@ class HTMLTableSectionElement; class HTMLTableElement : public HTMLElement { public: - HTMLTableElement(const QualifiedName&, Document*); - - virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } - virtual int tagPriority() const { return 9; } - virtual bool checkDTD(const Node*); + static PassRefPtr<HTMLTableElement> create(Document*); + static PassRefPtr<HTMLTableElement> create(const QualifiedName&, Document*); HTMLTableCaptionElement* caption() const; void setCaption(PassRefPtr<HTMLTableCaptionElement>, ExceptionCode&); @@ -91,21 +88,30 @@ public: void setWidth(const String&); virtual ContainerNode* addChild(PassRefPtr<Node>); + + virtual void attach(); + + void addSharedCellDecls(Vector<CSSMutableStyleDeclaration*>&); + void addSharedGroupDecls(bool rows, Vector<CSSMutableStyleDeclaration*>&); + +private: + HTMLTableElement(const QualifiedName&, Document*); + + virtual HTMLTagStatus endTagRequirement() const { return TagStatusRequired; } + virtual int tagPriority() const { return 9; } + virtual bool checkDTD(const Node*); + virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const; virtual void parseMappedAttribute(Attribute*); - virtual void attach(); virtual bool isURLAttribute(Attribute*) const; // Used to obtain either a solid or outset border decl and to deal with the frame // and rules attributes. virtual bool canHaveAdditionalAttributeStyleDecls() const { return true; } virtual void additionalAttributeStyleDecls(Vector<CSSMutableStyleDeclaration*>&); - void addSharedCellDecls(Vector<CSSMutableStyleDeclaration*>&); - void addSharedGroupDecls(bool rows, Vector<CSSMutableStyleDeclaration*>&); virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; -private: void addSharedCellBordersDecl(Vector<CSSMutableStyleDeclaration*>&); void addSharedCellPaddingDecl(Vector<CSSMutableStyleDeclaration*>&); @@ -121,7 +127,7 @@ private: bool m_frameAttr; // Implies a thin border width if no border is set and then a certain set of solid/hidden borders based off the value. TableRules m_rulesAttr; // Implies a thin border width, a collapsing border model, and all borders on the table becoming set to hidden (if frame/border // are present, to none otherwise). - + unsigned short m_padding; RefPtr<CSSMappedAttributeDeclaration> m_paddingDecl; }; |