| 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 styleAffectedByEmpty() const { return m_styleAffectedByEmpty; } | 57 bool styleAffectedByEmpty() const { return m_styleAffectedByEmpty; } |
| 58 void setStyleAffectedByEmpty(bool value) { m_styleAffectedByEmpty = value; } | 58 void setStyleAffectedByEmpty(bool value) { m_styleAffectedByEmpty = value; } |
| 59 | 59 |
| 60 bool isInCanvasSubtree() const { return m_isInCanvasSubtree; } | 60 bool isInCanvasSubtree() const { return m_isInCanvasSubtree; } |
| 61 void setIsInCanvasSubtree(bool value) { m_isInCanvasSubtree = value; } | 61 void setIsInCanvasSubtree(bool value) { m_isInCanvasSubtree = value; } |
| 62 | 62 |
| 63 bool containsFullScreenElement() { return m_containsFullScreenElement; } | 63 bool containsFullScreenElement() { return m_containsFullScreenElement; } |
| 64 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement
= value; } | 64 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement
= value; } |
| 65 | 65 |
| 66 #if ENABLE(DIALOG_ELEMENT) | |
| 67 bool isInTopLayer() const { return m_isInTopLayer; } | 66 bool isInTopLayer() const { return m_isInTopLayer; } |
| 68 void setIsInTopLayer(bool value) { m_isInTopLayer = value; } | 67 void setIsInTopLayer(bool value) { m_isInTopLayer = value; } |
| 69 #endif | |
| 70 | 68 |
| 71 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; } | 69 bool childrenAffectedByHover() const { return m_childrenAffectedByHover; } |
| 72 void setChildrenAffectedByHover(bool value) { m_childrenAffectedByHover = va
lue; } | 70 void setChildrenAffectedByHover(bool value) { m_childrenAffectedByHover = va
lue; } |
| 73 bool childrenAffectedByActive() const { return m_childrenAffectedByActive; } | 71 bool childrenAffectedByActive() const { return m_childrenAffectedByActive; } |
| 74 void setChildrenAffectedByActive(bool value) { m_childrenAffectedByActive =
value; } | 72 void setChildrenAffectedByActive(bool value) { m_childrenAffectedByActive =
value; } |
| 75 bool childrenAffectedByDrag() const { return m_childrenAffectedByDrag; } | 73 bool childrenAffectedByDrag() const { return m_childrenAffectedByDrag; } |
| 76 void setChildrenAffectedByDrag(bool value) { m_childrenAffectedByDrag = valu
e; } | 74 void setChildrenAffectedByDrag(bool value) { m_childrenAffectedByDrag = valu
e; } |
| 77 | 75 |
| 78 bool childrenAffectedByFirstChildRules() const { return m_childrenAffectedBy
FirstChildRules; } | 76 bool childrenAffectedByFirstChildRules() const { return m_childrenAffectedBy
FirstChildRules; } |
| 79 void setChildrenAffectedByFirstChildRules(bool value) { m_childrenAffectedBy
FirstChildRules = value; } | 77 void setChildrenAffectedByFirstChildRules(bool value) { m_childrenAffectedBy
FirstChildRules = value; } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 #endif | 128 #endif |
| 131 | 129 |
| 132 private: | 130 private: |
| 133 short m_tabIndex; | 131 short m_tabIndex; |
| 134 unsigned short m_childIndex; | 132 unsigned short m_childIndex; |
| 135 unsigned m_tabIndexWasSetExplicitly : 1; | 133 unsigned m_tabIndexWasSetExplicitly : 1; |
| 136 unsigned m_needsFocusAppearanceUpdateSoonAfterAttach : 1; | 134 unsigned m_needsFocusAppearanceUpdateSoonAfterAttach : 1; |
| 137 unsigned m_styleAffectedByEmpty : 1; | 135 unsigned m_styleAffectedByEmpty : 1; |
| 138 unsigned m_isInCanvasSubtree : 1; | 136 unsigned m_isInCanvasSubtree : 1; |
| 139 unsigned m_containsFullScreenElement : 1; | 137 unsigned m_containsFullScreenElement : 1; |
| 140 #if ENABLE(DIALOG_ELEMENT) | |
| 141 unsigned m_isInTopLayer : 1; | 138 unsigned m_isInTopLayer : 1; |
| 142 #endif | |
| 143 #if ENABLE(SVG) | 139 #if ENABLE(SVG) |
| 144 unsigned m_hasPendingResources : 1; | 140 unsigned m_hasPendingResources : 1; |
| 145 #endif | 141 #endif |
| 146 unsigned m_childrenAffectedByHover : 1; | 142 unsigned m_childrenAffectedByHover : 1; |
| 147 unsigned m_childrenAffectedByActive : 1; | 143 unsigned m_childrenAffectedByActive : 1; |
| 148 unsigned m_childrenAffectedByDrag : 1; | 144 unsigned m_childrenAffectedByDrag : 1; |
| 149 // Bits for dynamic child matching. | 145 // Bits for dynamic child matching. |
| 150 // We optimize for :first-child and :last-child. The other positional child
selectors like nth-child or | 146 // We optimize for :first-child and :last-child. The other positional child
selectors like nth-child or |
| 151 // *-child-of-type, we will just give up and re-evaluate whenever children c
hange at all. | 147 // *-child-of-type, we will just give up and re-evaluate whenever children c
hange at all. |
| 152 unsigned m_childrenAffectedByFirstChildRules : 1; | 148 unsigned m_childrenAffectedByFirstChildRules : 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 178 | 174 |
| 179 inline ElementRareData::ElementRareData(RenderObject* renderer) | 175 inline ElementRareData::ElementRareData(RenderObject* renderer) |
| 180 : NodeRareData(renderer) | 176 : NodeRareData(renderer) |
| 181 , m_tabIndex(0) | 177 , m_tabIndex(0) |
| 182 , m_childIndex(0) | 178 , m_childIndex(0) |
| 183 , m_tabIndexWasSetExplicitly(false) | 179 , m_tabIndexWasSetExplicitly(false) |
| 184 , m_needsFocusAppearanceUpdateSoonAfterAttach(false) | 180 , m_needsFocusAppearanceUpdateSoonAfterAttach(false) |
| 185 , m_styleAffectedByEmpty(false) | 181 , m_styleAffectedByEmpty(false) |
| 186 , m_isInCanvasSubtree(false) | 182 , m_isInCanvasSubtree(false) |
| 187 , m_containsFullScreenElement(false) | 183 , m_containsFullScreenElement(false) |
| 188 #if ENABLE(DIALOG_ELEMENT) | |
| 189 , m_isInTopLayer(false) | 184 , m_isInTopLayer(false) |
| 190 #endif | |
| 191 #if ENABLE(SVG) | 185 #if ENABLE(SVG) |
| 192 , m_hasPendingResources(false) | 186 , m_hasPendingResources(false) |
| 193 #endif | 187 #endif |
| 194 , m_childrenAffectedByHover(false) | 188 , m_childrenAffectedByHover(false) |
| 195 , m_childrenAffectedByActive(false) | 189 , m_childrenAffectedByActive(false) |
| 196 , m_childrenAffectedByDrag(false) | 190 , m_childrenAffectedByDrag(false) |
| 197 , m_childrenAffectedByFirstChildRules(false) | 191 , m_childrenAffectedByFirstChildRules(false) |
| 198 , m_childrenAffectedByLastChildRules(false) | 192 , m_childrenAffectedByLastChildRules(false) |
| 199 , m_childrenAffectedByDirectAdjacentRules(false) | 193 , m_childrenAffectedByDirectAdjacentRules(false) |
| 200 , m_childrenAffectedByForwardPositionalRules(false) | 194 , m_childrenAffectedByForwardPositionalRules(false) |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 setChildrenAffectedByFirstChildRules(false); | 261 setChildrenAffectedByFirstChildRules(false); |
| 268 setChildrenAffectedByLastChildRules(false); | 262 setChildrenAffectedByLastChildRules(false); |
| 269 setChildrenAffectedByDirectAdjacentRules(false); | 263 setChildrenAffectedByDirectAdjacentRules(false); |
| 270 setChildrenAffectedByForwardPositionalRules(false); | 264 setChildrenAffectedByForwardPositionalRules(false); |
| 271 setChildrenAffectedByBackwardPositionalRules(false); | 265 setChildrenAffectedByBackwardPositionalRules(false); |
| 272 } | 266 } |
| 273 | 267 |
| 274 } // namespace | 268 } // namespace |
| 275 | 269 |
| 276 #endif // ElementRareData_h | 270 #endif // ElementRareData_h |
| OLD | NEW |