Chromium Code Reviews| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 void setChildrenAffectedByDirectAdjacentRules(bool value) { m_childrenAffect edByDirectAdjacentRules = value; } | 91 void setChildrenAffectedByDirectAdjacentRules(bool value) { m_childrenAffect edByDirectAdjacentRules = value; } |
| 92 bool childrenAffectedByForwardPositionalRules() const { return m_childrenAff ectedByForwardPositionalRules; } | 92 bool childrenAffectedByForwardPositionalRules() const { return m_childrenAff ectedByForwardPositionalRules; } |
| 93 void setChildrenAffectedByForwardPositionalRules(bool value) { m_childrenAff ectedByForwardPositionalRules = value; } | 93 void setChildrenAffectedByForwardPositionalRules(bool value) { m_childrenAff ectedByForwardPositionalRules = value; } |
| 94 bool childrenAffectedByBackwardPositionalRules() const { return m_childrenAf fectedByBackwardPositionalRules; } | 94 bool childrenAffectedByBackwardPositionalRules() const { return m_childrenAf fectedByBackwardPositionalRules; } |
| 95 void setChildrenAffectedByBackwardPositionalRules(bool value) { m_childrenAf fectedByBackwardPositionalRules = value; } | 95 void setChildrenAffectedByBackwardPositionalRules(bool value) { m_childrenAf fectedByBackwardPositionalRules = value; } |
| 96 unsigned childIndex() const { return m_childIndex; } | 96 unsigned childIndex() const { return m_childIndex; } |
| 97 void setChildIndex(unsigned index) { m_childIndex = index; } | 97 void setChildIndex(unsigned index) { m_childIndex = index; } |
| 98 | 98 |
| 99 void clearShadow() { m_shadow = nullptr; } | 99 void clearShadow() { m_shadow = nullptr; } |
| 100 ElementShadow* shadow() const { return m_shadow.get(); } | 100 ElementShadow* shadow() const { return m_shadow.get(); } |
| 101 ElementShadow* ensureShadow() | 101 ElementShadow& ensureShadow() |
| 102 { | 102 { |
| 103 if (!m_shadow) | 103 if (!m_shadow) |
| 104 m_shadow = ElementShadow::create(); | 104 m_shadow = ElementShadow::create(); |
| 105 return m_shadow.get(); | 105 return *m_shadow.get(); |
|
adamk
2013/10/16 15:17:21
Nit: you can remove the .get()
Inactive
2013/10/16 15:20:17
Done.
| |
| 106 } | 106 } |
| 107 | 107 |
| 108 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } | 108 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } |
| 109 void setAttributeMap(PassOwnPtr<NamedNodeMap> attributeMap) { m_attributeMap = attributeMap; } | 109 void setAttributeMap(PassOwnPtr<NamedNodeMap> attributeMap) { m_attributeMap = attributeMap; } |
| 110 | 110 |
| 111 RenderStyle* computedStyle() const { return m_computedStyle.get(); } | 111 RenderStyle* computedStyle() const { return m_computedStyle.get(); } |
| 112 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; } | 112 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; } |
| 113 void clearComputedStyle() { m_computedStyle = 0; } | 113 void clearComputedStyle() { m_computedStyle = 0; } |
| 114 | 114 |
| 115 ClassList* classList() const { return m_classList.get(); } | 115 ClassList* classList() const { return m_classList.get(); } |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 296 setChildrenAffectedByFirstChildRules(false); | 296 setChildrenAffectedByFirstChildRules(false); |
| 297 setChildrenAffectedByLastChildRules(false); | 297 setChildrenAffectedByLastChildRules(false); |
| 298 setChildrenAffectedByDirectAdjacentRules(false); | 298 setChildrenAffectedByDirectAdjacentRules(false); |
| 299 setChildrenAffectedByForwardPositionalRules(false); | 299 setChildrenAffectedByForwardPositionalRules(false); |
| 300 setChildrenAffectedByBackwardPositionalRules(false); | 300 setChildrenAffectedByBackwardPositionalRules(false); |
| 301 } | 301 } |
| 302 | 302 |
| 303 } // namespace | 303 } // namespace |
| 304 | 304 |
| 305 #endif // ElementRareData_h | 305 #endif // ElementRareData_h |
| OLD | NEW |