OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> | 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 m_tabindex = index; | 58 m_tabindex = index; |
59 setElementFlag(TabIndexWasSetExplicitly, true); | 59 setElementFlag(TabIndexWasSetExplicitly, true); |
60 } | 60 } |
61 | 61 |
62 void clearTabIndexExplicitly() | 62 void clearTabIndexExplicitly() |
63 { | 63 { |
64 m_tabindex = 0; | 64 m_tabindex = 0; |
65 clearElementFlag(TabIndexWasSetExplicitly); | 65 clearElementFlag(TabIndexWasSetExplicitly); |
66 } | 66 } |
67 | 67 |
68 bool tabStop() const { return m_tabStop; } | |
69 | |
70 void setTabStop(bool flag) { m_tabStop = flag; } | |
71 | |
72 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); | 68 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); |
73 | 69 |
74 void clearShadow() { m_shadow = nullptr; } | 70 void clearShadow() { m_shadow = nullptr; } |
75 ElementShadow* shadow() const { return m_shadow.get(); } | 71 ElementShadow* shadow() const { return m_shadow.get(); } |
76 ElementShadow& ensureShadow() | 72 ElementShadow& ensureShadow() |
77 { | 73 { |
78 if (!m_shadow) | 74 if (!m_shadow) |
79 m_shadow = ElementShadow::create(); | 75 m_shadow = ElementShadow::create(); |
80 return *m_shadow; | 76 return *m_shadow; |
81 } | 77 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } | 122 CustomElementDefinition* customElementDefinition() const { return m_customEl
ementDefinition.get(); } |
127 | 123 |
128 AttrNodeList& ensureAttrNodeList(); | 124 AttrNodeList& ensureAttrNodeList(); |
129 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } | 125 AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } |
130 void removeAttrNodeList() { m_attrNodeList.clear(); } | 126 void removeAttrNodeList() { m_attrNodeList.clear(); } |
131 | 127 |
132 DECLARE_TRACE_AFTER_DISPATCH(); | 128 DECLARE_TRACE_AFTER_DISPATCH(); |
133 | 129 |
134 private: | 130 private: |
135 short m_tabindex; | 131 short m_tabindex; |
136 unsigned short m_tabStop : 1; | |
137 unsigned short m_proxyCount : 10; | 132 unsigned short m_proxyCount : 10; |
138 | 133 |
139 LayoutSize m_minimumSizeForResizing; | 134 LayoutSize m_minimumSizeForResizing; |
140 IntSize m_savedLayerScrollOffset; | 135 IntSize m_savedLayerScrollOffset; |
141 | 136 |
142 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; | 137 OwnPtrWillBeMember<DatasetDOMStringMap> m_dataset; |
143 OwnPtrWillBeMember<ClassList> m_classList; | 138 OwnPtrWillBeMember<ClassList> m_classList; |
144 OwnPtrWillBeMember<ElementShadow> m_shadow; | 139 OwnPtrWillBeMember<ElementShadow> m_shadow; |
145 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; | 140 OwnPtrWillBeMember<NamedNodeMap> m_attributeMap; |
146 OwnPtrWillBeMember<AttrNodeList> m_attrNodeList; | 141 OwnPtrWillBeMember<AttrNodeList> m_attrNodeList; |
(...skipping 12 matching lines...) Expand all Loading... |
159 }; | 154 }; |
160 | 155 |
161 inline LayoutSize defaultMinimumSizeForResizing() | 156 inline LayoutSize defaultMinimumSizeForResizing() |
162 { | 157 { |
163 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); | 158 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); |
164 } | 159 } |
165 | 160 |
166 inline ElementRareData::ElementRareData(LayoutObject* layoutObject) | 161 inline ElementRareData::ElementRareData(LayoutObject* layoutObject) |
167 : NodeRareData(layoutObject) | 162 : NodeRareData(layoutObject) |
168 , m_tabindex(0) | 163 , m_tabindex(0) |
169 , m_tabStop(true) | |
170 , m_proxyCount(0) | 164 , m_proxyCount(0) |
171 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) | 165 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) |
172 { | 166 { |
173 m_isElementRareData = true; | 167 m_isElementRareData = true; |
174 } | 168 } |
175 | 169 |
176 inline ElementRareData::~ElementRareData() | 170 inline ElementRareData::~ElementRareData() |
177 { | 171 { |
178 #if !ENABLE(OILPAN) | 172 #if !ENABLE(OILPAN) |
179 ASSERT(!m_shadow); | 173 ASSERT(!m_shadow); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 case FIRST_LETTER: | 231 case FIRST_LETTER: |
238 return m_generatedFirstLetter.get(); | 232 return m_generatedFirstLetter.get(); |
239 default: | 233 default: |
240 return 0; | 234 return 0; |
241 } | 235 } |
242 } | 236 } |
243 | 237 |
244 } // namespace | 238 } // namespace |
245 | 239 |
246 #endif // ElementRareData_h | 240 #endif // ElementRareData_h |
OLD | NEW |