| Index: Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
|
| index 81bda1e28820080cebc26a4cbd35296087b76584..0091b44bad50bbd0491260bcc3d90174ea0018c7 100644
|
| --- a/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1613,17 +1613,17 @@ void WebLocalFrameImpl::createFrameView()
|
| ASSERT(frame()); // If frame() doesn't exist, we probably didn't init properly.
|
|
|
| WebViewImpl* webView = viewImpl();
|
| - bool isMainFrame = webView->mainFrameImpl()->frame() == frame();
|
| - if (isMainFrame)
|
| + bool isLocalRoot = frame()->isLocalRoot();
|
| + if (isLocalRoot)
|
| webView->suppressInvalidations(true);
|
|
|
| frame()->createView(webView->size(), webView->baseBackgroundColor(), webView->isTransparent());
|
| - if (webView->shouldAutoResize() && isMainFrame)
|
| + if (webView->shouldAutoResize() && isLocalRoot)
|
| frame()->view()->enableAutoSizeMode(true, webView->minAutoSize(), webView->maxAutoSize());
|
|
|
| frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffsetForEmulation, m_inputEventsScaleFactorForEmulation);
|
|
|
| - if (isMainFrame)
|
| + if (isLocalRoot)
|
| webView->suppressInvalidations(false);
|
| }
|
|
|
|
|