Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index 5a811b2ddd4d14c8c46e4e5adbfe5ca99e2fa5c9..4339c04cdb7384eaed0cd553e2b0ee8d162cf51d 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2628,6 +2628,18 @@ NodeIntersectionObserverData& Element::ensureIntersectionObserverData() |
return ensureElementRareData().ensureIntersectionObserverData(); |
} |
+HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>* Element::resizeObserverData() const |
+{ |
+ if (hasRareData()) |
+ return elementRareData()->resizeObserverData(); |
+ return nullptr; |
+} |
+ |
+HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>& Element::ensureResizeObserverData() |
+{ |
+ return ensureElementRareData().ensureResizeObserverData(); |
+} |
+ |
// Step 1 of http://domparsing.spec.whatwg.org/#insertadjacenthtml() |
static Element* contextElementForInsertion(const String& where, Element* element, ExceptionState& exceptionState) |
{ |