| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index 24a23eb9dea15d6035a6cc9568e802983c4e90e0..4ce597239e6aba7c1d309258e6ba5f74f31b2697 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1793,7 +1793,7 @@ WebLocalFrameImpl* WebLocalFrameImpl::localRoot()
|
| // when the WebLocalFrame exists but the core LocalFrame does not.
|
| // TODO(alexmos, dcheng): Clean this up to only calculate this in one place.
|
| WebLocalFrameImpl* localRoot = this;
|
| - while (!localRoot->frameWidget())
|
| + while (localRoot->parent() && localRoot->parent()->isWebLocalFrame())
|
| localRoot = toWebLocalFrameImpl(localRoot->parent());
|
| return localRoot;
|
| }
|
|
|