OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "core/html/HTMLElement.h" | 29 #include "core/html/HTMLElement.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class ExceptionState; | 33 class ExceptionState; |
34 class HTMLCollection; | 34 class HTMLCollection; |
35 class HTMLTableCaptionElement; | 35 class HTMLTableCaptionElement; |
36 class HTMLTableRowsCollection; | 36 class HTMLTableRowsCollection; |
37 class HTMLTableSectionElement; | 37 class HTMLTableSectionElement; |
38 | 38 |
39 class HTMLTableElement FINAL : public HTMLElement { | 39 class HTMLTableElement final : public HTMLElement { |
40 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
41 public: | 41 public: |
42 DECLARE_NODE_FACTORY(HTMLTableElement); | 42 DECLARE_NODE_FACTORY(HTMLTableElement); |
43 | 43 |
44 HTMLTableCaptionElement* caption() const; | 44 HTMLTableCaptionElement* caption() const; |
45 void setCaption(PassRefPtrWillBeRawPtr<HTMLTableCaptionElement>, ExceptionSt
ate&); | 45 void setCaption(PassRefPtrWillBeRawPtr<HTMLTableCaptionElement>, ExceptionSt
ate&); |
46 | 46 |
47 HTMLTableSectionElement* tHead() const; | 47 HTMLTableSectionElement* tHead() const; |
48 void setTHead(PassRefPtrWillBeRawPtr<HTMLTableSectionElement>, ExceptionStat
e&); | 48 void setTHead(PassRefPtrWillBeRawPtr<HTMLTableSectionElement>, ExceptionStat
e&); |
49 | 49 |
(...skipping 12 matching lines...) Expand all Loading... |
62 | 62 |
63 PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> rows(); | 63 PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> rows(); |
64 PassRefPtrWillBeRawPtr<HTMLCollection> tBodies(); | 64 PassRefPtrWillBeRawPtr<HTMLCollection> tBodies(); |
65 | 65 |
66 const AtomicString& rules() const; | 66 const AtomicString& rules() const; |
67 const AtomicString& summary() const; | 67 const AtomicString& summary() const; |
68 | 68 |
69 const StylePropertySet* additionalCellStyle(); | 69 const StylePropertySet* additionalCellStyle(); |
70 const StylePropertySet* additionalGroupStyle(bool rows); | 70 const StylePropertySet* additionalGroupStyle(bool rows); |
71 | 71 |
72 virtual void trace(Visitor*) OVERRIDE; | 72 virtual void trace(Visitor*) override; |
73 | 73 |
74 private: | 74 private: |
75 explicit HTMLTableElement(Document&); | 75 explicit HTMLTableElement(Document&); |
76 | 76 |
77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 77 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
78 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 78 virtual bool isPresentationAttribute(const QualifiedName&) const override; |
79 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 79 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; |
80 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 80 virtual bool isURLAttribute(const Attribute&) const override; |
81 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE; | 81 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; |
82 virtual const QualifiedName& subResourceAttributeName() const OVERRIDE; | 82 virtual const QualifiedName& subResourceAttributeName() const override; |
83 | 83 |
84 // Used to obtain either a solid or outset border decl and to deal with the
frame and rules attributes. | 84 // Used to obtain either a solid or outset border decl and to deal with the
frame and rules attributes. |
85 virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERR
IDE; | 85 virtual const StylePropertySet* additionalPresentationAttributeStyle() overr
ide; |
86 | 86 |
87 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules,
AllRules }; | 87 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules,
AllRules }; |
88 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn
ly, SolidBordersRowsOnly }; | 88 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn
ly, SolidBordersRowsOnly }; |
89 | 89 |
90 CellBorders cellBorders() const; | 90 CellBorders cellBorders() const; |
91 | 91 |
92 PassRefPtrWillBeRawPtr<StylePropertySet> createSharedCellStyle(); | 92 PassRefPtrWillBeRawPtr<StylePropertySet> createSharedCellStyle(); |
93 | 93 |
94 HTMLTableSectionElement* lastBody() const; | 94 HTMLTableSectionElement* lastBody() const; |
95 | 95 |
96 void setNeedsTableStyleRecalc() const; | 96 void setNeedsTableStyleRecalc() const; |
97 | 97 |
98 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. | 98 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. |
99 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. | 99 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. |
100 bool m_frameAttr; // Implies a thin border width if no border is s
et and then a certain set of solid/hidden borders based off the value. | 100 bool m_frameAttr; // Implies a thin border width if no border is s
et and then a certain set of solid/hidden borders based off the value. |
101 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor
der model, and all borders on the table becoming set to hidden (if frame/border | 101 TableRules m_rulesAttr; // Implies a thin border width, a collapsing bor
der model, and all borders on the table becoming set to hidden (if frame/border |
102 // are present, to none otherwise). | 102 // are present, to none otherwise). |
103 | 103 |
104 unsigned short m_padding; | 104 unsigned short m_padding; |
105 RefPtrWillBeMember<StylePropertySet> m_sharedCellStyle; | 105 RefPtrWillBeMember<StylePropertySet> m_sharedCellStyle; |
106 }; | 106 }; |
107 | 107 |
108 } // namespace blink | 108 } // namespace blink |
109 | 109 |
110 #endif // HTMLTableElement_h | 110 #endif // HTMLTableElement_h |
OLD | NEW |