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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 const StylePropertySet* additionalCellStyle(); | 70 const StylePropertySet* additionalCellStyle(); |
71 const StylePropertySet* additionalGroupStyle(bool rows); | 71 const StylePropertySet* additionalGroupStyle(bool rows); |
72 | 72 |
73 DECLARE_VIRTUAL_TRACE(); | 73 DECLARE_VIRTUAL_TRACE(); |
74 | 74 |
75 private: | 75 private: |
76 explicit HTMLTableElement(Document&); | 76 explicit HTMLTableElement(Document&); |
77 ~HTMLTableElement(); | 77 ~HTMLTableElement(); |
78 | 78 |
79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 79 void parseAttribute(const QualifiedName&, const AtomicString&) override; |
80 virtual bool isPresentationAttribute(const QualifiedName&) const override; | 80 bool isPresentationAttribute(const QualifiedName&) const override; |
81 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) override; | 81 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
82 virtual bool isURLAttribute(const Attribute&) const override; | 82 bool isURLAttribute(const Attribute&) const override; |
83 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; | 83 bool hasLegalLinkAttribute(const QualifiedName&) const override; |
84 virtual const QualifiedName& subResourceAttributeName() const override; | 84 const QualifiedName& subResourceAttributeName() const override; |
85 | 85 |
86 // Used to obtain either a solid or outset border decl and to deal with the
frame and rules attributes. | 86 // Used to obtain either a solid or outset border decl and to deal with the
frame and rules attributes. |
87 virtual const StylePropertySet* additionalPresentationAttributeStyle() overr
ide; | 87 const StylePropertySet* additionalPresentationAttributeStyle() override; |
88 | 88 |
89 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules,
AllRules }; | 89 enum TableRules { UnsetRules, NoneRules, GroupsRules, RowsRules, ColsRules,
AllRules }; |
90 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn
ly, SolidBordersRowsOnly }; | 90 enum CellBorders { NoBorders, SolidBorders, InsetBorders, SolidBordersColsOn
ly, SolidBordersRowsOnly }; |
91 | 91 |
92 CellBorders cellBorders() const; | 92 CellBorders cellBorders() const; |
93 | 93 |
94 PassRefPtrWillBeRawPtr<StylePropertySet> createSharedCellStyle(); | 94 PassRefPtrWillBeRawPtr<StylePropertySet> createSharedCellStyle(); |
95 | 95 |
96 HTMLTableSectionElement* lastBody() const; | 96 HTMLTableSectionElement* lastBody() const; |
97 | 97 |
98 void setNeedsTableStyleRecalc() const; | 98 void setNeedsTableStyleRecalc() const; |
99 | 99 |
100 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. | 100 bool m_borderAttr; // Sets a precise border width and creates an ou
tset border for the table and for its cells. |
101 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. | 101 bool m_borderColorAttr; // Overrides the outset border and makes it soli
d for the table and cells instead. |
102 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. | 102 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. |
103 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 | 103 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 |
104 // are present, to none otherwise). | 104 // are present, to none otherwise). |
105 | 105 |
106 unsigned short m_padding; | 106 unsigned short m_padding; |
107 RefPtrWillBeMember<StylePropertySet> m_sharedCellStyle; | 107 RefPtrWillBeMember<StylePropertySet> m_sharedCellStyle; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 | 111 |
112 #endif // HTMLTableElement_h | 112 #endif // HTMLTableElement_h |
OLD | NEW |