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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 bool needsFocusAppearanceUpdateSoonAfterAttach() const { return m_needsFocus
AppearanceUpdateSoonAfterAttach; } | 57 bool needsFocusAppearanceUpdateSoonAfterAttach() const { return m_needsFocus
AppearanceUpdateSoonAfterAttach; } |
58 void setNeedsFocusAppearanceUpdateSoonAfterAttach(bool needs) { m_needsFocus
AppearanceUpdateSoonAfterAttach = needs; } | 58 void setNeedsFocusAppearanceUpdateSoonAfterAttach(bool needs) { m_needsFocus
AppearanceUpdateSoonAfterAttach = needs; } |
59 | 59 |
60 bool styleAffectedByEmpty() const { return m_styleAffectedByEmpty; } | 60 bool styleAffectedByEmpty() const { return m_styleAffectedByEmpty; } |
61 void setStyleAffectedByEmpty(bool value) { m_styleAffectedByEmpty = value; } | 61 void setStyleAffectedByEmpty(bool value) { m_styleAffectedByEmpty = value; } |
62 | 62 |
63 bool isInCanvasSubtree() const { return m_isInCanvasSubtree; } | 63 bool isInCanvasSubtree() const { return m_isInCanvasSubtree; } |
64 void setIsInCanvasSubtree(bool value) { m_isInCanvasSubtree = value; } | 64 void setIsInCanvasSubtree(bool value) { m_isInCanvasSubtree = value; } |
65 | 65 |
66 bool isInsideRegion() const { return m_isInsideRegion; } | |
67 void setIsInsideRegion(bool value) { m_isInsideRegion = value; } | |
68 | |
69 RegionOversetState regionOversetState() const { return m_regionOversetState;
} | |
70 void setRegionOversetState(RegionOversetState state) { m_regionOversetState
= state; } | |
71 | |
72 bool containsFullScreenElement() { return m_containsFullScreenElement; } | 66 bool containsFullScreenElement() { return m_containsFullScreenElement; } |
73 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement
= value; } | 67 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement
= value; } |
74 | 68 |
75 bool isInTopLayer() const { return m_isInTopLayer; } | 69 bool isInTopLayer() const { return m_isInTopLayer; } |
76 void setIsInTopLayer(bool value) { m_isInTopLayer = value; } | 70 void setIsInTopLayer(bool value) { m_isInTopLayer = value; } |
77 | 71 |
78 bool childrenAffectedByFocus() const { return m_childrenAffectedByFocus; } | 72 bool childrenAffectedByFocus() const { return m_childrenAffectedByFocus; } |
79 void setChildrenAffectedByFocus(bool value) { m_childrenAffectedByFocus = va
lue; } | 73 void setChildrenAffectedByFocus(bool value) { m_childrenAffectedByFocus = va
lue; } |
80 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; } | 74 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; } |
81 void setChildrenAffectedByHover(bool value) { m_childrenAffectedByHover = va
lue; } | 75 void setChildrenAffectedByHover(bool value) { m_childrenAffectedByHover = va
lue; } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 unsigned m_childrenAffectedByDrag : 1; | 163 unsigned m_childrenAffectedByDrag : 1; |
170 // Bits for dynamic child matching. | 164 // Bits for dynamic child matching. |
171 // We optimize for :first-child and :last-child. The other positional child
selectors like nth-child or | 165 // We optimize for :first-child and :last-child. The other positional child
selectors like nth-child or |
172 // *-child-of-type, we will just give up and re-evaluate whenever children c
hange at all. | 166 // *-child-of-type, we will just give up and re-evaluate whenever children c
hange at all. |
173 unsigned m_childrenAffectedByFirstChildRules : 1; | 167 unsigned m_childrenAffectedByFirstChildRules : 1; |
174 unsigned m_childrenAffectedByLastChildRules : 1; | 168 unsigned m_childrenAffectedByLastChildRules : 1; |
175 unsigned m_childrenAffectedByDirectAdjacentRules : 1; | 169 unsigned m_childrenAffectedByDirectAdjacentRules : 1; |
176 unsigned m_childrenAffectedByForwardPositionalRules : 1; | 170 unsigned m_childrenAffectedByForwardPositionalRules : 1; |
177 unsigned m_childrenAffectedByBackwardPositionalRules : 1; | 171 unsigned m_childrenAffectedByBackwardPositionalRules : 1; |
178 | 172 |
179 unsigned m_isInsideRegion : 1; | |
180 RegionOversetState m_regionOversetState; | |
181 | |
182 LayoutSize m_minimumSizeForResizing; | 173 LayoutSize m_minimumSizeForResizing; |
183 IntSize m_savedLayerScrollOffset; | 174 IntSize m_savedLayerScrollOffset; |
184 RefPtr<RenderStyle> m_computedStyle; | 175 RefPtr<RenderStyle> m_computedStyle; |
185 | 176 |
186 OwnPtr<DatasetDOMStringMap> m_dataset; | 177 OwnPtr<DatasetDOMStringMap> m_dataset; |
187 OwnPtr<ClassList> m_classList; | 178 OwnPtr<ClassList> m_classList; |
188 OwnPtr<ElementShadow> m_shadow; | 179 OwnPtr<ElementShadow> m_shadow; |
189 OwnPtr<NamedNodeMap> m_attributeMap; | 180 OwnPtr<NamedNodeMap> m_attributeMap; |
190 OwnPtr<InputMethodContext> m_inputMethodContext; | 181 OwnPtr<InputMethodContext> m_inputMethodContext; |
191 OwnPtr<ActiveAnimations> m_activeAnimations; | 182 OwnPtr<ActiveAnimations> m_activeAnimations; |
(...skipping 24 matching lines...) Expand all Loading... |
216 , m_hasPendingResources(false) | 207 , m_hasPendingResources(false) |
217 , m_childrenAffectedByFocus(false) | 208 , m_childrenAffectedByFocus(false) |
218 , m_childrenAffectedByHover(false) | 209 , m_childrenAffectedByHover(false) |
219 , m_childrenAffectedByActive(false) | 210 , m_childrenAffectedByActive(false) |
220 , m_childrenAffectedByDrag(false) | 211 , m_childrenAffectedByDrag(false) |
221 , m_childrenAffectedByFirstChildRules(false) | 212 , m_childrenAffectedByFirstChildRules(false) |
222 , m_childrenAffectedByLastChildRules(false) | 213 , m_childrenAffectedByLastChildRules(false) |
223 , m_childrenAffectedByDirectAdjacentRules(false) | 214 , m_childrenAffectedByDirectAdjacentRules(false) |
224 , m_childrenAffectedByForwardPositionalRules(false) | 215 , m_childrenAffectedByForwardPositionalRules(false) |
225 , m_childrenAffectedByBackwardPositionalRules(false) | 216 , m_childrenAffectedByBackwardPositionalRules(false) |
226 , m_isInsideRegion(false) | |
227 , m_regionOversetState(RegionUndefined) | |
228 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) | 217 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) |
229 { | 218 { |
230 } | 219 } |
231 | 220 |
232 inline ElementRareData::~ElementRareData() | 221 inline ElementRareData::~ElementRareData() |
233 { | 222 { |
234 ASSERT(!m_shadow); | 223 ASSERT(!m_shadow); |
235 ASSERT(!m_generatedBefore); | 224 ASSERT(!m_generatedBefore); |
236 ASSERT(!m_generatedAfter); | 225 ASSERT(!m_generatedAfter); |
237 ASSERT(!m_backdrop); | 226 ASSERT(!m_backdrop); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 setChildrenAffectedByFirstChildRules(false); | 290 setChildrenAffectedByFirstChildRules(false); |
302 setChildrenAffectedByLastChildRules(false); | 291 setChildrenAffectedByLastChildRules(false); |
303 setChildrenAffectedByDirectAdjacentRules(false); | 292 setChildrenAffectedByDirectAdjacentRules(false); |
304 setChildrenAffectedByForwardPositionalRules(false); | 293 setChildrenAffectedByForwardPositionalRules(false); |
305 setChildrenAffectedByBackwardPositionalRules(false); | 294 setChildrenAffectedByBackwardPositionalRules(false); |
306 } | 295 } |
307 | 296 |
308 } // namespace | 297 } // namespace |
309 | 298 |
310 #endif // ElementRareData_h | 299 #endif // ElementRareData_h |
OLD | NEW |