Index: third_party/WebKit/Source/core/dom/ElementRareData.h |
diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h |
index c3bb62e2a47ede0a85a4922c595c7914449f3184..e0fa0aaacb1cad3f27ae4bba2067d1f5c3b77e31 100644 |
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h |
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h |
@@ -44,6 +44,8 @@ namespace blink { |
class HTMLElement; |
class CompositorProxiedPropertySet; |
+class ResizeObservation; |
+class ResizeObserver; |
class ElementRareData : public NodeRareData { |
public: |
@@ -138,6 +140,11 @@ public: |
return *m_intersectionObserverData; |
} |
+ using ResizeObserverDataMap = HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>; |
+ |
+ ResizeObserverDataMap* resizeObserverData() const { return m_resizeObserverData; } |
+ ResizeObserverDataMap& ensureResizeObserverData(); |
+ |
DECLARE_TRACE_AFTER_DISPATCH(); |
DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); |
@@ -162,6 +169,7 @@ private: |
Member<ElementAnimations> m_elementAnimations; |
Member<NodeIntersectionObserverData> m_intersectionObserverData; |
+ Member<ResizeObserverDataMap> m_resizeObserverData; |
RefPtr<ComputedStyle> m_computedStyle; |
Member<V0CustomElementDefinition> m_customElementDefinition; |