| 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 <memory> |
| 25 #include "bindings/core/v8/ScriptWrappableVisitor.h" | 26 #include "bindings/core/v8/ScriptWrappableVisitor.h" |
| 26 #include "core/animation/ElementAnimations.h" | 27 #include "core/animation/ElementAnimations.h" |
| 27 #include "core/css/cssom/InlineStylePropertyMap.h" | 28 #include "core/css/cssom/InlineStylePropertyMap.h" |
| 28 #include "core/dom/Attr.h" | 29 #include "core/dom/Attr.h" |
| 29 #include "core/dom/CompositorProxiedPropertySet.h" | 30 #include "core/dom/CompositorProxiedPropertySet.h" |
| 30 #include "core/dom/DatasetDOMStringMap.h" | 31 #include "core/dom/DatasetDOMStringMap.h" |
| 31 #include "core/dom/ElementIntersectionObserverData.h" | 32 #include "core/dom/ElementIntersectionObserverData.h" |
| 32 #include "core/dom/NamedNodeMap.h" | 33 #include "core/dom/NamedNodeMap.h" |
| 33 #include "core/dom/NodeRareData.h" | 34 #include "core/dom/NodeRareData.h" |
| 34 #include "core/dom/PseudoElement.h" | 35 #include "core/dom/PseudoElement.h" |
| 35 #include "core/dom/PseudoElementData.h" | 36 #include "core/dom/PseudoElementData.h" |
| 36 #include "core/dom/custom/CustomElementDefinition.h" | 37 #include "core/dom/custom/CustomElementDefinition.h" |
| 37 #include "core/dom/custom/V0CustomElementDefinition.h" | 38 #include "core/dom/custom/V0CustomElementDefinition.h" |
| 38 #include "core/dom/shadow/ElementShadow.h" | 39 #include "core/dom/shadow/ElementShadow.h" |
| 39 #include "core/html/ClassList.h" | 40 #include "core/html/ClassList.h" |
| 40 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
| 41 #include "wtf/HashSet.h" | 42 #include "wtf/HashSet.h" |
| 42 #include <memory> | |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class LayoutObject; | 46 class LayoutObject; |
| 47 class CompositorProxiedPropertySet; | 47 class CompositorProxiedPropertySet; |
| 48 class ResizeObservation; | 48 class ResizeObservation; |
| 49 class ResizeObserver; | 49 class ResizeObserver; |
| 50 | 50 |
| 51 class ElementRareData : public NodeRareData { | 51 class ElementRareData : public NodeRareData { |
| 52 public: | 52 public: |
| 53 static ElementRareData* create(LayoutObject* layoutObject) { | 53 static ElementRareData* create(LayoutObject* layoutObject) { |
| 54 return new ElementRareData(layoutObject); | 54 return new ElementRareData(layoutObject); |
| 55 } | 55 } |
| 56 | 56 |
| 57 ~ElementRareData(); | 57 ~ElementRareData(); |
| 58 | 58 |
| 59 void setPseudoElement(PseudoId, PseudoElement*); | 59 void setPseudoElement(PseudoId, PseudoElement*); |
| 60 PseudoElement* pseudoElement(PseudoId) const; | 60 PseudoElement* pseudoElement(PseudoId) const; |
| 61 | 61 |
| 62 void setTabIndexExplicitly() { | 62 void setTabIndexExplicitly() { |
| 63 setElementFlag(TabIndexWasSetExplicitly, true); | 63 setElementFlag(TabIndexWasSetExplicitly, true); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void clearTabIndexExplicitly() { | 66 void clearTabIndexExplicitly() { clearElementFlag(TabIndexWasSetExplicitly); } |
| 67 clearElementFlag(TabIndexWasSetExplicitly); | |
| 68 } | |
| 69 | 67 |
| 70 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); | 68 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); |
| 71 InlineStylePropertyMap& ensureInlineStylePropertyMap(Element* ownerElement); | 69 InlineStylePropertyMap& ensureInlineStylePropertyMap(Element* ownerElement); |
| 72 | 70 |
| 73 InlineStylePropertyMap* inlineStylePropertyMap() { | 71 InlineStylePropertyMap* inlineStylePropertyMap() { |
| 74 return m_cssomMapWrapper.get(); | 72 return m_cssomMapWrapper.get(); |
| 75 } | 73 } |
| 76 | 74 |
| 77 void clearShadow() { m_shadow = nullptr; } | 75 void clearShadow() { m_shadow = nullptr; } |
| 78 ElementShadow* shadow() const { return m_shadow.get(); } | 76 ElementShadow* shadow() const { return m_shadow.get(); } |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 inline CompositorProxiedPropertySet& | 265 inline CompositorProxiedPropertySet& |
| 268 ElementRareData::ensureCompositorProxiedPropertySet() { | 266 ElementRareData::ensureCompositorProxiedPropertySet() { |
| 269 if (!m_proxiedProperties) | 267 if (!m_proxiedProperties) |
| 270 m_proxiedProperties = CompositorProxiedPropertySet::create(); | 268 m_proxiedProperties = CompositorProxiedPropertySet::create(); |
| 271 return *m_proxiedProperties; | 269 return *m_proxiedProperties; |
| 272 } | 270 } |
| 273 | 271 |
| 274 } // namespace blink | 272 } // namespace blink |
| 275 | 273 |
| 276 #endif // ElementRareData_h | 274 #endif // ElementRareData_h |
| OLD | NEW |