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 c54685438f01bbe09ebda12d0626967f89c8f8be..15359a4fb8625690534dc216358b3b89c4b013b6 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -5693,6 +5693,13 @@ |
return true; |
} |
+WebTaskRunner* Document::loadingTaskRunner() const |
+{ |
+ if (frame()) |
+ return frame()->frameScheduler()->loadingTaskRunner(); |
+ return Platform::current()->currentThread()->scheduler()->loadingTaskRunner(); |
+} |
+ |
DEFINE_TRACE(Document) |
{ |
#if ENABLE(OILPAN) |