diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/html/HTMLFrameSetElement.cpp | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/html/HTMLFrameSetElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLFrameSetElement.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/WebCore/html/HTMLFrameSetElement.cpp b/Source/WebCore/html/HTMLFrameSetElement.cpp index 803a1b9c9..8b36dbf07 100644 --- a/Source/WebCore/html/HTMLFrameSetElement.cpp +++ b/Source/WebCore/html/HTMLFrameSetElement.cpp @@ -210,18 +210,24 @@ bool HTMLFrameSetElement::willRecalcStyle(StyleChange) return true; } -void HTMLFrameSetElement::insertedIntoDocument() +Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto(Node* insertionPoint) { - HTMLElement::insertedIntoDocument(); - if (Frame* frame = document()->frame()) - frame->loader()->client()->dispatchDidBecomeFrameset(document()->isFrameSet()); + HTMLElement::insertedInto(insertionPoint); + if (insertionPoint->inDocument()) { + if (Frame* frame = document()->frame()) + frame->loader()->client()->dispatchDidBecomeFrameset(document()->isFrameSet()); + } + + return InsertionDone; } -void HTMLFrameSetElement::removedFromDocument() +void HTMLFrameSetElement::removedFrom(Node* insertionPoint) { - HTMLElement::removedFromDocument(); - if (Frame* frame = document()->frame()) - frame->loader()->client()->dispatchDidBecomeFrameset(document()->isFrameSet()); + HTMLElement::removedFrom(insertionPoint); + if (insertionPoint->inDocument()) { + if (Frame* frame = document()->frame()) + frame->loader()->client()->dispatchDidBecomeFrameset(document()->isFrameSet()); + } } } // namespace WebCore |