| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index 2417e620887fbacb9c14128f7992983558fb301c..b3010ce4c8a6ba0c95bf9042a085ea3818b86d15 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -409,6 +409,19 @@
|
| return curFrame;
|
| }
|
|
|
| +bool LocalFrame::inScope(TreeScope* scope) const
|
| +{
|
| + ASSERT(scope);
|
| + Document* doc = document();
|
| + if (!doc)
|
| + return false;
|
| + // FIXME: This check is broken in for OOPI.
|
| + HTMLFrameOwnerElement* owner = doc->ownerElement();
|
| + if (!owner)
|
| + return false;
|
| + return owner->treeScope() == scope;
|
| +}
|
| +
|
| String LocalFrame::layerTreeAsText(LayerTreeFlags flags) const
|
| {
|
| TextStream textStream;
|
|
|