| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 799e600dc5c88da71cd989b129d96abdcc2e5bb2..d8656d6eebae75568f19bd5519ed71be85da2918 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3884,6 +3884,15 @@ void WebViewImpl::willInsertBody(WebLocalFrameImpl* webframe)
|
| resumeTreeViewCommits();
|
| }
|
|
|
| +void WebViewImpl::didFinishDocumentLoad(WebLocalFrameImpl* webframe)
|
| +{
|
| + if (webframe != mainFrameImpl())
|
| + return;
|
| + // If we finished parsing and there's no sheets to load start painting.
|
| + if (webframe->frame()->document()->isRenderingReady())
|
| + resumeTreeViewCommits();
|
| +}
|
| +
|
| void WebViewImpl::didRemoveAllPendingStylesheet(WebLocalFrameImpl* webframe)
|
| {
|
| if (webframe != mainFrameImpl())
|
| @@ -3915,10 +3924,6 @@ void WebViewImpl::layoutUpdated(WebLocalFrameImpl* webframe)
|
| if (!m_client || !webframe->frame()->isLocalRoot())
|
| return;
|
|
|
| - // If we finished a layout while in deferred commit mode,
|
| - // that means it's time to start producing frames again so un-defer.
|
| - resumeTreeViewCommits();
|
| -
|
| if (m_shouldAutoResize && webframe->frame() && webframe->frame()->view()) {
|
| WebSize frameSize = webframe->frame()->view()->frameRect().size();
|
| if (frameSize != m_size) {
|
|
|