Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 084c698331fa46ef960b870d9e2bf32c0c589db6..25a1fd76d5495cc74b31e7dfd778eaad5d3d88ac 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1810,21 +1810,15 @@ void WebLocalFrameImpl::createFrameView() |
ASSERT(frame()); // If frame() doesn't exist, we probably didn't init properly. |
WebViewImpl* webView = viewImpl(); |
- bool isLocalRoot = frame()->isLocalRoot(); |
- if (isLocalRoot) |
- webView->suppressInvalidations(true); |
IntSize initialSize = frameWidget() ? (IntSize)frameWidget()->size() : webView->mainFrameSize(); |
frame()->createView(initialSize, webView->baseBackgroundColor(), webView->isTransparent()); |
- if (webView->shouldAutoResize() && isLocalRoot) |
+ if (webView->shouldAutoResize() && frame()->isLocalRoot()) |
frame()->view()->enableAutoSizeMode(webView->minAutoSize(), webView->maxAutoSize()); |
frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffsetForEmulation, m_inputEventsScaleFactorForEmulation); |
frame()->view()->setDisplayMode(webView->displayMode()); |
- |
- if (isLocalRoot) |
- webView->suppressInvalidations(false); |
} |
WebLocalFrameImpl* WebLocalFrameImpl::fromFrame(LocalFrame* frame) |