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 0b5091037670cae1b61d6f18773afedd62aa7fde..9f65184736b77910c0da0d80859fa01f0c3f203b 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -46,6 +46,7 @@ |
#include "core/XMLNSNames.h" |
#include "core/XMLNames.h" |
#include "core/animation/AnimationTimeline.h" |
+#include "core/animation/CompositorPendingAnimations.h" |
#include "core/animation/DocumentAnimations.h" |
#include "core/css/CSSFontSelector.h" |
#include "core/css/CSSStyleDeclaration.h" |
@@ -4719,9 +4720,8 @@ RawPtr<Document> Document::contextDocument() |
{ |
if (m_contextDocument) |
return m_contextDocument; |
- if (m_frame) { |
- return createWeakPtr(); |
- } |
+ if (m_frame) |
+ return this; |
return nullptr; |
} |
@@ -5217,15 +5217,6 @@ void Document::parseDNSPrefetchControlHeader(const String& dnsPrefetchControl) |
m_haveExplicitlyDisabledDNSPrefetch = true; |
} |
-RawPtr<Document> Document::createWeakPtr() |
-{ |
-#if ENABLE(OILPAN) |
- return this; |
-#else |
- return m_weakFactory.createWeakPtr(); |
-#endif |
-} |
- |
IntersectionObserverController* Document::intersectionObserverController() |
{ |
return m_intersectionObserverController; |