bool Frame::inScope(TreeScope* scope) const { ASSERT(scope); HTMLFrameOwnerElement* owner = document()->ownerElement(); // Scoping test should be done only for child frames. ASSERT(owner); return owner->treeScope() == scope; }
static bool inScope(Frame& frame, TreeScope& scope) { Document* document = frame.document(); if (!document) return false; HTMLFrameOwnerElement* owner = document->ownerElement(); if (!owner) return false; return &owner->treeScope() == &scope; }
bool LocalFrame::inScope(TreeScope* scope) const { ASSERT(scope); Document* doc = document(); if (!doc) return false; HTMLFrameOwnerElement* owner = doc->ownerElement(); if (!owner) return false; return owner->treeScope() == scope; }
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; }