Chromium Code Reviews| Index: Source/core/frame/Frame.cpp |
| diff --git a/Source/core/frame/Frame.cpp b/Source/core/frame/Frame.cpp |
| index 4f95ddfb6d8fea37c74c90f1e9df0369f3e741f3..3c41ee14c734906d2c7526d70c3daaf3196a8990 100644 |
| --- a/Source/core/frame/Frame.cpp |
| +++ b/Source/core/frame/Frame.cpp |
| @@ -116,8 +116,7 @@ FrameHost* Frame::host() const |
| bool Frame::isMainFrame() const |
| { |
| - Page* page = this->page(); |
| - return page && this == page->mainFrame(); |
| + return !tree().parent(); |
| } |
| bool Frame::isLocalRoot() const |