Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
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;
}
Ejemplo n.º 3
0
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;
}
Ejemplo n.º 4
0
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;
}