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 efdafbb7fdf63f77b1607c3fe6f9da43f9fb6e09..04d712253f6bacf1f5c64106a80121b4e7a309b3 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -5205,17 +5205,7 @@ void Document::beginLifecycleUpdatesIfRenderingReady() { |
return; |
if (!isRenderingReady()) |
return; |
- if (LocalFrame* frame = this->frame()) { |
- // Avoid pumping frames for the initially empty document. |
- if (!frame->loader().stateMachine()->committedFirstRealDocumentLoad()) |
- return; |
- // The compositor will "defer commits" for the main frame until we |
- // explicitly request them. |
- if (frame->isMainFrame()) |
- frame->page()->chromeClient().beginLifecycleUpdates(); |
- if (frame->view()) |
- frame->view()->setupRenderThrottling(); |
- } |
+ view()->beginLifecycleUpdates(); |
} |
Vector<IconURL> Document::iconURLs(int iconTypesMask) { |