| 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 25 matching lines...) Expand all Loading... |
| 36 class HTMLTableCaptionElement; | 36 class HTMLTableCaptionElement; |
| 37 class HTMLTableRowsCollection; | 37 class HTMLTableRowsCollection; |
| 38 class HTMLTableSectionElement; | 38 class HTMLTableSectionElement; |
| 39 | 39 |
| 40 class CORE_EXPORT HTMLTableElement final : public HTMLElement { | 40 class CORE_EXPORT HTMLTableElement final : public HTMLElement { |
| 41 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
| 42 public: | 42 public: |
| 43 DECLARE_NODE_FACTORY(HTMLTableElement); | 43 DECLARE_NODE_FACTORY(HTMLTableElement); |
| 44 | 44 |
| 45 HTMLTableCaptionElement* caption() const; | 45 HTMLTableCaptionElement* caption() const; |
| 46 void setCaption(PassRefPtrWillBeRawPtr<HTMLTableCaptionElement>, ExceptionSt
ate&); | 46 void setCaption(RawPtr<HTMLTableCaptionElement>, ExceptionState&); |
| 47 | 47 |
| 48 HTMLTableSectionElement* tHead() const; | 48 HTMLTableSectionElement* tHead() const; |
| 49 void setTHead(PassRefPtrWillBeRawPtr<HTMLTableSectionElement>, ExceptionStat
e&); | 49 void setTHead(RawPtr<HTMLTableSectionElement>, ExceptionState&); |
| 50 | 50 |
| 51 HTMLTableSectionElement* tFoot() const; | 51 HTMLTableSectionElement* tFoot() const; |
| 52 void setTFoot(PassRefPtrWillBeRawPtr<HTMLTableSectionElement>, ExceptionStat
e&); | 52 void setTFoot(RawPtr<HTMLTableSectionElement>, ExceptionState&); |
| 53 | 53 |
| 54 PassRefPtrWillBeRawPtr<HTMLTableSectionElement> createTHead(); | 54 RawPtr<HTMLTableSectionElement> createTHead(); |
| 55 void deleteTHead(); | 55 void deleteTHead(); |
| 56 PassRefPtrWillBeRawPtr<HTMLTableSectionElement> createTFoot(); | 56 RawPtr<HTMLTableSectionElement> createTFoot(); |
| 57 void deleteTFoot(); | 57 void deleteTFoot(); |
| 58 PassRefPtrWillBeRawPtr<HTMLTableSectionElement> createTBody(); | 58 RawPtr<HTMLTableSectionElement> createTBody(); |
| 59 PassRefPtrWillBeRawPtr<HTMLTableCaptionElement> createCaption(); | 59 RawPtr<HTMLTableCaptionElement> createCaption(); |
| 60 void deleteCaption(); | 60 void deleteCaption(); |
| 61 PassRefPtrWillBeRawPtr<HTMLTableRowElement> insertRow(int index, ExceptionSt
ate&); | 61 RawPtr<HTMLTableRowElement> insertRow(int index, ExceptionState&); |
| 62 void deleteRow(int index, ExceptionState&); | 62 void deleteRow(int index, ExceptionState&); |
| 63 | 63 |
| 64 PassRefPtrWillBeRawPtr<HTMLTableRowsCollection> rows(); | 64 RawPtr<HTMLTableRowsCollection> rows(); |
| 65 PassRefPtrWillBeRawPtr<HTMLCollection> tBodies(); | 65 RawPtr<HTMLCollection> tBodies(); |
| 66 | 66 |
| 67 const AtomicString& rules() const; | 67 const AtomicString& rules() const; |
| 68 const AtomicString& summary() const; | 68 const AtomicString& summary() const; |
| 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 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 79 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
| 80 bool isPresentationAttribute(const QualifiedName&) const override; | 80 bool isPresentationAttribute(const QualifiedName&) const override; |
| 81 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; | 81 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic
String&, MutableStylePropertySet*) override; |
| 82 bool isURLAttribute(const Attribute&) const override; | 82 bool isURLAttribute(const Attribute&) const override; |
| 83 bool hasLegalLinkAttribute(const QualifiedName&) const override; | 83 bool hasLegalLinkAttribute(const QualifiedName&) const override; |
| 84 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 const StylePropertySet* additionalPresentationAttributeStyle() override; | 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 getCellBorders() const; | 92 CellBorders getCellBorders() const; |
| 93 | 93 |
| 94 PassRefPtrWillBeRawPtr<StylePropertySet> createSharedCellStyle(); | 94 RawPtr<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 Member<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 |