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