Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

Issue 2005593002: Initial ResizeObserver implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to master: Vector<WeakMember> no longer ok. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698