| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const AtomicString&, | 81 const AtomicString&, |
| 82 const AtomicString&) override; | 82 const AtomicString&) override; |
| 83 bool isPresentationAttribute(const QualifiedName&) const override; | 83 bool isPresentationAttribute(const QualifiedName&) const override; |
| 84 void collectStyleForPresentationAttribute(const QualifiedName&, | 84 void collectStyleForPresentationAttribute(const QualifiedName&, |
| 85 const AtomicString&, | 85 const AtomicString&, |
| 86 MutableStylePropertySet*) override; | 86 MutableStylePropertySet*) override; |
| 87 bool isURLAttribute(const Attribute&) const override; | 87 bool isURLAttribute(const Attribute&) const override; |
| 88 bool hasLegalLinkAttribute(const QualifiedName&) const override; | 88 bool hasLegalLinkAttribute(const QualifiedName&) const override; |
| 89 const QualifiedName& subResourceAttributeName() const override; | 89 const QualifiedName& subResourceAttributeName() const override; |
| 90 | 90 |
| 91 // Used to obtain either a solid or outset border decl and to deal with the fr
ame and rules attributes. | 91 // Used to obtain either a solid or outset border decl and to deal with the |
| 92 // frame and rules attributes. |
| 92 const StylePropertySet* additionalPresentationAttributeStyle() override; | 93 const StylePropertySet* additionalPresentationAttributeStyle() override; |
| 93 | 94 |
| 94 enum TableRules { | 95 enum TableRules { |
| 95 UnsetRules, | 96 UnsetRules, |
| 96 NoneRules, | 97 NoneRules, |
| 97 GroupsRules, | 98 GroupsRules, |
| 98 RowsRules, | 99 RowsRules, |
| 99 ColsRules, | 100 ColsRules, |
| 100 AllRules | 101 AllRules |
| 101 }; | 102 }; |
| 102 enum CellBorders { | 103 enum CellBorders { |
| 103 NoBorders, | 104 NoBorders, |
| 104 SolidBorders, | 105 SolidBorders, |
| 105 InsetBorders, | 106 InsetBorders, |
| 106 SolidBordersColsOnly, | 107 SolidBordersColsOnly, |
| 107 SolidBordersRowsOnly | 108 SolidBordersRowsOnly |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 CellBorders getCellBorders() const; | 111 CellBorders getCellBorders() const; |
| 111 | 112 |
| 112 StylePropertySet* createSharedCellStyle(); | 113 StylePropertySet* createSharedCellStyle(); |
| 113 | 114 |
| 114 HTMLTableSectionElement* lastBody() const; | 115 HTMLTableSectionElement* lastBody() const; |
| 115 | 116 |
| 116 void setNeedsTableStyleRecalc() const; | 117 void setNeedsTableStyleRecalc() const; |
| 117 | 118 |
| 118 bool | 119 // Sets a precise border width and creates an outset border for the table and |
| 119 m_borderAttr; // Sets a precise border width and creates an outset border
for the table and for its cells. | 120 // for its cells. |
| 120 bool | 121 bool m_borderAttr; |
| 121 m_borderColorAttr; // Overrides the outset border and makes it solid for
the table and cells instead. | 122 // Overrides the outset border and makes it solid for the table and cells |
| 122 bool | 123 // instead. |
| 123 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. | 124 bool m_borderColorAttr; |
| 124 TableRules | 125 // Implies a thin border width if no border is set and then a certain set of |
| 125 m_rulesAttr; // Implies a thin border width, a collapsing border model, a
nd all borders on the table becoming set to hidden (if frame/border | 126 // solid/hidden borders based off the value. |
| 126 // are present, to none otherwise). | 127 bool m_frameAttr; |
| 128 // Implies a thin border width, a collapsing border model, and all borders on |
| 129 // the table becoming set to hidden (if frame/border are present, to none |
| 130 // otherwise). |
| 131 TableRules m_rulesAttr; |
| 127 | 132 |
| 128 unsigned short m_padding; | 133 unsigned short m_padding; |
| 129 Member<StylePropertySet> m_sharedCellStyle; | 134 Member<StylePropertySet> m_sharedCellStyle; |
| 130 }; | 135 }; |
| 131 | 136 |
| 132 } // namespace blink | 137 } // namespace blink |
| 133 | 138 |
| 134 #endif // HTMLTableElement_h | 139 #endif // HTMLTableElement_h |
| OLD | NEW |