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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void setChildrenAffectedByLastChildRules(bool value) { m_childrenAffectedByL
astChildRules = value; } | 81 void setChildrenAffectedByLastChildRules(bool value) { m_childrenAffectedByL
astChildRules = value; } |
82 bool childrenAffectedByDirectAdjacentRules() const { return m_childrenAffect
edByDirectAdjacentRules; } | 82 bool childrenAffectedByDirectAdjacentRules() const { return m_childrenAffect
edByDirectAdjacentRules; } |
83 void setChildrenAffectedByDirectAdjacentRules(bool value) { m_childrenAffect
edByDirectAdjacentRules = value; } | 83 void setChildrenAffectedByDirectAdjacentRules(bool value) { m_childrenAffect
edByDirectAdjacentRules = value; } |
84 bool childrenAffectedByForwardPositionalRules() const { return m_childrenAff
ectedByForwardPositionalRules; } | 84 bool childrenAffectedByForwardPositionalRules() const { return m_childrenAff
ectedByForwardPositionalRules; } |
85 void setChildrenAffectedByForwardPositionalRules(bool value) { m_childrenAff
ectedByForwardPositionalRules = value; } | 85 void setChildrenAffectedByForwardPositionalRules(bool value) { m_childrenAff
ectedByForwardPositionalRules = value; } |
86 bool childrenAffectedByBackwardPositionalRules() const { return m_childrenAf
fectedByBackwardPositionalRules; } | 86 bool childrenAffectedByBackwardPositionalRules() const { return m_childrenAf
fectedByBackwardPositionalRules; } |
87 void setChildrenAffectedByBackwardPositionalRules(bool value) { m_childrenAf
fectedByBackwardPositionalRules = value; } | 87 void setChildrenAffectedByBackwardPositionalRules(bool value) { m_childrenAf
fectedByBackwardPositionalRules = value; } |
88 unsigned childIndex() const { return m_childIndex; } | 88 unsigned childIndex() const { return m_childIndex; } |
89 void setChildIndex(unsigned index) { m_childIndex = index; } | 89 void setChildIndex(unsigned index) { m_childIndex = index; } |
90 | 90 |
91 // Manually called by Node::reportMemoryUsage. | |
92 void reportMemoryUsage(MemoryObjectInfo*) const; | |
93 | |
94 void clearShadow() { m_shadow = nullptr; } | 91 void clearShadow() { m_shadow = nullptr; } |
95 ElementShadow* shadow() const { return m_shadow.get(); } | 92 ElementShadow* shadow() const { return m_shadow.get(); } |
96 ElementShadow* ensureShadow() | 93 ElementShadow* ensureShadow() |
97 { | 94 { |
98 if (!m_shadow) | 95 if (!m_shadow) |
99 m_shadow = ElementShadow::create(); | 96 m_shadow = ElementShadow::create(); |
100 return m_shadow.get(); | 97 return m_shadow.get(); |
101 } | 98 } |
102 | 99 |
103 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } | 100 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 setChildrenAffectedByFirstChildRules(false); | 264 setChildrenAffectedByFirstChildRules(false); |
268 setChildrenAffectedByLastChildRules(false); | 265 setChildrenAffectedByLastChildRules(false); |
269 setChildrenAffectedByDirectAdjacentRules(false); | 266 setChildrenAffectedByDirectAdjacentRules(false); |
270 setChildrenAffectedByForwardPositionalRules(false); | 267 setChildrenAffectedByForwardPositionalRules(false); |
271 setChildrenAffectedByBackwardPositionalRules(false); | 268 setChildrenAffectedByBackwardPositionalRules(false); |
272 } | 269 } |
273 | 270 |
274 } // namespace | 271 } // namespace |
275 | 272 |
276 #endif // ElementRareData_h | 273 #endif // ElementRareData_h |
OLD | NEW |