| 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 30 matching lines...) Expand all Loading... |
| 41 class ElementRareData : public NodeRareData { | 41 class ElementRareData : public NodeRareData { |
| 42 public: | 42 public: |
| 43 static PassOwnPtr<ElementRareData> create(RenderObject* renderer) { return a
doptPtr(new ElementRareData(renderer)); } | 43 static PassOwnPtr<ElementRareData> create(RenderObject* renderer) { return a
doptPtr(new ElementRareData(renderer)); } |
| 44 | 44 |
| 45 ~ElementRareData(); | 45 ~ElementRareData(); |
| 46 | 46 |
| 47 void setPseudoElement(PseudoId, PassRefPtr<PseudoElement>); | 47 void setPseudoElement(PseudoId, PassRefPtr<PseudoElement>); |
| 48 PseudoElement* pseudoElement(PseudoId) const; | 48 PseudoElement* pseudoElement(PseudoId) const; |
| 49 | 49 |
| 50 void resetStyleState(); | 50 void resetStyleState(); |
| 51 void resetDynamicRestyleObservations(); | |
| 52 | 51 |
| 53 short tabIndex() const { return m_tabindex; } | 52 short tabIndex() const { return m_tabindex; } |
| 54 | 53 |
| 55 void setTabIndexExplicitly(short index) | 54 void setTabIndexExplicitly(short index) |
| 56 { | 55 { |
| 57 m_tabindex = index; | 56 m_tabindex = index; |
| 58 setFlag(TabIndexWasSetExplicitly, true); | 57 setElementFlag(TabIndexWasSetExplicitly, true); |
| 59 } | 58 } |
| 60 | 59 |
| 61 void clearTabIndexExplicitly() | 60 void clearTabIndexExplicitly() |
| 62 { | 61 { |
| 63 m_tabindex = 0; | 62 m_tabindex = 0; |
| 64 clearFlag(TabIndexWasSetExplicitly); | 63 clearElementFlag(TabIndexWasSetExplicitly); |
| 65 } | 64 } |
| 66 | 65 |
| 67 unsigned childIndex() const { return m_childIndex; } | 66 unsigned childIndex() const { return m_childIndex; } |
| 68 void setChildIndex(unsigned index) { m_childIndex = index; } | 67 void setChildIndex(unsigned index) { m_childIndex = index; } |
| 69 | 68 |
| 70 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); | 69 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); |
| 71 | 70 |
| 72 void clearShadow() { m_shadow = nullptr; } | 71 void clearShadow() { m_shadow = nullptr; } |
| 73 ElementShadow* shadow() const { return m_shadow.get(); } | 72 ElementShadow* shadow() const { return m_shadow.get(); } |
| 74 ElementShadow& ensureShadow() | 73 ElementShadow& ensureShadow() |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 return m_generatedAfter.get(); | 212 return m_generatedAfter.get(); |
| 214 case BACKDROP: | 213 case BACKDROP: |
| 215 return m_backdrop.get(); | 214 return m_backdrop.get(); |
| 216 default: | 215 default: |
| 217 return 0; | 216 return 0; |
| 218 } | 217 } |
| 219 } | 218 } |
| 220 | 219 |
| 221 inline void ElementRareData::resetStyleState() | 220 inline void ElementRareData::resetStyleState() |
| 222 { | 221 { |
| 223 clearFlag(StyleAffectedByEmpty); | 222 clearElementFlag(StyleAffectedByEmpty); |
| 224 setChildIndex(0); | 223 setChildIndex(0); |
| 225 } | 224 } |
| 226 | 225 |
| 227 inline void ElementRareData::resetDynamicRestyleObservations() | |
| 228 { | |
| 229 clearFlag(ChildrenAffectedByFocus); | |
| 230 clearFlag(ChildrenAffectedByHover); | |
| 231 clearFlag(ChildrenAffectedByActive); | |
| 232 clearFlag(ChildrenAffectedByDrag); | |
| 233 clearFlag(ChildrenAffectedByFirstChildRules); | |
| 234 clearFlag(ChildrenAffectedByLastChildRules); | |
| 235 clearFlag(ChildrenAffectedByDirectAdjacentRules); | |
| 236 clearFlag(ChildrenAffectedByIndirectAdjacentRules); | |
| 237 clearFlag(ChildrenAffectedByForwardPositionalRules); | |
| 238 clearFlag(ChildrenAffectedByBackwardPositionalRules); | |
| 239 } | |
| 240 | |
| 241 } // namespace | 226 } // namespace |
| 242 | 227 |
| 243 #endif // ElementRareData_h | 228 #endif // ElementRareData_h |
| OLD | NEW |