| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef ElementRareData_h | 22 #ifndef ElementRareData_h |
| 23 #define ElementRareData_h | 23 #define ElementRareData_h |
| 24 | 24 |
| 25 #include "core/animation/ElementAnimations.h" | 25 #include "core/animation/ElementAnimations.h" |
| 26 #include "core/css/cssom/InlineStylePropertyMap.h" |
| 26 #include "core/dom/Attr.h" | 27 #include "core/dom/Attr.h" |
| 27 #include "core/dom/CompositorProxiedPropertySet.h" | 28 #include "core/dom/CompositorProxiedPropertySet.h" |
| 28 #include "core/dom/DatasetDOMStringMap.h" | 29 #include "core/dom/DatasetDOMStringMap.h" |
| 29 #include "core/dom/NamedNodeMap.h" | 30 #include "core/dom/NamedNodeMap.h" |
| 30 #include "core/dom/NodeIntersectionObserverData.h" | 31 #include "core/dom/NodeIntersectionObserverData.h" |
| 31 #include "core/dom/NodeRareData.h" | 32 #include "core/dom/NodeRareData.h" |
| 32 #include "core/dom/PseudoElement.h" | 33 #include "core/dom/PseudoElement.h" |
| 33 #include "core/dom/custom/CustomElementDefinition.h" | 34 #include "core/dom/custom/CustomElementDefinition.h" |
| 34 #include "core/dom/shadow/ElementShadow.h" | 35 #include "core/dom/shadow/ElementShadow.h" |
| 35 #include "core/html/ClassList.h" | 36 #include "core/html/ClassList.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 63 setElementFlag(TabIndexWasSetExplicitly, true); | 64 setElementFlag(TabIndexWasSetExplicitly, true); |
| 64 } | 65 } |
| 65 | 66 |
| 66 void clearTabIndexExplicitly() | 67 void clearTabIndexExplicitly() |
| 67 { | 68 { |
| 68 m_tabindex = 0; | 69 m_tabindex = 0; |
| 69 clearElementFlag(TabIndexWasSetExplicitly); | 70 clearElementFlag(TabIndexWasSetExplicitly); |
| 70 } | 71 } |
| 71 | 72 |
| 72 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); | 73 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); |
| 74 InlineStylePropertyMap& ensureInlineStylePropertyMap(Element* ownerElement); |
| 75 |
| 76 InlineStylePropertyMap* inlineStylePropertyMap() { return m_cssomMapWrapper.
get(); } |
| 73 | 77 |
| 74 void clearShadow() { m_shadow = nullptr; } | 78 void clearShadow() { m_shadow = nullptr; } |
| 75 ElementShadow* shadow() const { return m_shadow.get(); } | 79 ElementShadow* shadow() const { return m_shadow.get(); } |
| 76 ElementShadow& ensureShadow() | 80 ElementShadow& ensureShadow() |
| 77 { | 81 { |
| 78 if (!m_shadow) | 82 if (!m_shadow) |
| 79 m_shadow = ElementShadow::create(); | 83 m_shadow = ElementShadow::create(); |
| 80 return *m_shadow; | 84 return *m_shadow; |
| 81 } | 85 } |
| 82 | 86 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 147 |
| 144 LayoutSize m_minimumSizeForResizing; | 148 LayoutSize m_minimumSizeForResizing; |
| 145 IntSize m_savedLayerScrollOffset; | 149 IntSize m_savedLayerScrollOffset; |
| 146 | 150 |
| 147 Member<DatasetDOMStringMap> m_dataset; | 151 Member<DatasetDOMStringMap> m_dataset; |
| 148 Member<ElementShadow> m_shadow; | 152 Member<ElementShadow> m_shadow; |
| 149 Member<ClassList> m_classList; | 153 Member<ClassList> m_classList; |
| 150 Member<NamedNodeMap> m_attributeMap; | 154 Member<NamedNodeMap> m_attributeMap; |
| 151 Member<AttrNodeList> m_attrNodeList; | 155 Member<AttrNodeList> m_attrNodeList; |
| 152 Member<InlineCSSStyleDeclaration> m_cssomWrapper; | 156 Member<InlineCSSStyleDeclaration> m_cssomWrapper; |
| 157 Member<InlineStylePropertyMap> m_cssomMapWrapper; |
| 153 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties; | 158 OwnPtr<CompositorProxiedPropertySet> m_proxiedProperties; |
| 154 | 159 |
| 155 Member<ElementAnimations> m_elementAnimations; | 160 Member<ElementAnimations> m_elementAnimations; |
| 156 Member<NodeIntersectionObserverData> m_intersectionObserverData; | 161 Member<NodeIntersectionObserverData> m_intersectionObserverData; |
| 157 | 162 |
| 158 RefPtr<ComputedStyle> m_computedStyle; | 163 RefPtr<ComputedStyle> m_computedStyle; |
| 159 Member<CustomElementDefinition> m_customElementDefinition; | 164 Member<CustomElementDefinition> m_customElementDefinition; |
| 160 | 165 |
| 161 Member<PseudoElement> m_generatedBefore; | 166 Member<PseudoElement> m_generatedBefore; |
| 162 Member<PseudoElement> m_generatedAfter; | 167 Member<PseudoElement> m_generatedAfter; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() | 272 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro
pertySet() |
| 268 { | 273 { |
| 269 if (!m_proxiedProperties) | 274 if (!m_proxiedProperties) |
| 270 m_proxiedProperties = CompositorProxiedPropertySet::create(); | 275 m_proxiedProperties = CompositorProxiedPropertySet::create(); |
| 271 return *m_proxiedProperties; | 276 return *m_proxiedProperties; |
| 272 } | 277 } |
| 273 | 278 |
| 274 } // namespace blink | 279 } // namespace blink |
| 275 | 280 |
| 276 #endif // ElementRareData_h | 281 #endif // ElementRareData_h |
| OLD | NEW |