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

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

Issue 2005593002: Initial ResizeObserver implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Observe content box, not clientWidth 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/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 02be63d7fcecb0c4f69fd3a294d009132a6354e8..ef238e04ee82cf999d2e7927b412cf3b36fc3476 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -63,6 +63,8 @@ class MutableStylePropertySet;
class NodeIntersectionObserverData;
class PropertySetCSSStyleDeclaration;
class PseudoElement;
+class ResizeObservation;
+class ResizeObserver;
class ScrollState;
class ScrollStateCallback;
class ScrollToOptions;
@@ -577,6 +579,9 @@ public:
NodeIntersectionObserverData* intersectionObserverData() const;
NodeIntersectionObserverData& ensureIntersectionObserverData();
+ HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>* resizeObserverData() const;
+ HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>& ensureResizeObserverData();
+
protected:
Element(const QualifiedName& tagName, Document*, ConstructionType);

Powered by Google App Engine
This is Rietveld 408576698