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

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: Created 4 years, 7 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 f43a0322431270e46adf942b96107d9577465e69..da63aa13c97555a01eecdb5d8f8c100f114a67e3 100644
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
@@ -35,6 +35,7 @@
#include "core/dom/custom/V0CustomElementDefinition.h"
#include "core/dom/shadow/ElementShadow.h"
#include "core/html/ClassList.h"
+#include "core/observer/ResizeObservation.h"
szager1 2016/05/23 19:49:10 Move this to ElementRareData.cpp, and add a forwar
atotic1 2016/05/25 00:15:52 Done.
#include "core/style/StyleInheritedData.h"
#include "platform/heap/Handle.h"
#include "wtf/HashSet.h"
@@ -138,6 +139,9 @@ public:
return *m_intersectionObserverData;
}
+ ResizeObservationSet* resizeObserverData() const { return m_resizeObserverData; }
+ ResizeObservationSet& ensureResizeObserverData();
+
DECLARE_TRACE_AFTER_DISPATCH();
DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH();
@@ -162,6 +166,7 @@ private:
Member<ElementAnimations> m_elementAnimations;
Member<NodeIntersectionObserverData> m_intersectionObserverData;
+ Member<ResizeObservationSet> m_resizeObserverData;
RefPtr<ComputedStyle> m_computedStyle;
Member<V0CustomElementDefinition> m_customElementDefinition;

Powered by Google App Engine
This is Rietveld 408576698