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 4b1e94c84ddf6aaf905bd68123904f9509ba5562..efb8866e4ac60f3ec4268486cc3a702a816ded37 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2651,6 +2651,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) |
{ |