Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 0e123a4bd445c26378da5f43e2689b6c21d2a9c0..24dff3b512cb3e401ad633f99df45f89ee62f61a 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -188,6 +188,7 @@ |
#include "core/loader/ImageLoader.h" |
#include "core/loader/NavigationScheduler.h" |
#include "core/loader/appcache/ApplicationCacheHost.h" |
+#include "core/observer/ResizeObserverController.h" |
#include "core/page/ChromeClient.h" |
#include "core/page/EventWithHitTestResults.h" |
#include "core/page/FocusController.h" |
@@ -5178,6 +5179,13 @@ NodeIntersectionObserverData& Document::ensureIntersectionObserverData() |
return *m_intersectionObserverData; |
} |
+ResizeObserverController& Document::ensureResizeObserverController() |
+{ |
+ if (!m_resizeObserverController) |
+ m_resizeObserverController = new ResizeObserverController(); |
+ return *m_resizeObserverController; |
+} |
+ |
void Document::reportBlockedScriptExecutionToInspector(const String& directiveText) |
{ |
InspectorInstrumentation::scriptExecutionBlockedByCSP(this, directiveText); |
@@ -5980,6 +5988,7 @@ DEFINE_TRACE(Document) |
visitor->trace(m_intersectionObserverController); |
visitor->trace(m_intersectionObserverData); |
visitor->trace(m_snapCoordinator); |
+ visitor->trace(m_resizeObserverController); |
Supplementable<Document>::trace(visitor); |
TreeScope::trace(visitor); |
ContainerNode::trace(visitor); |