Index: Source/web/WebLocalFrameImpl.cpp |
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
index 7cc0be201af20d050a4112e4d5054a73b7087718..a0e6204b0931544713004d8ce18825f8301d1659 100644 |
--- a/Source/web/WebLocalFrameImpl.cpp |
+++ b/Source/web/WebLocalFrameImpl.cpp |
@@ -1659,7 +1659,7 @@ 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(); |
+ bool isMainFrame = (parent() == 0); |
dcheng
2014/06/20 20:49:12
I think Blink style would prefer bool isMainFrame
|
if (isMainFrame) |
webView->suppressInvalidations(true); |