| Index: Source/core/frame/Frame.cpp
|
| ===================================================================
|
| --- Source/core/frame/Frame.cpp (revision 170478)
|
| +++ Source/core/frame/Frame.cpp (working copy)
|
| @@ -80,16 +80,10 @@
|
| #ifndef NDEBUG
|
| frameCounter.increment();
|
| #endif
|
| -
|
| - if (this->ownerElement()) {
|
| - page()->incrementSubframeCount();
|
| - this->ownerElement()->setContentFrame(*this);
|
| - }
|
| }
|
|
|
| Frame::~Frame()
|
| {
|
| - disconnectOwnerElement();
|
| setDOMWindow(nullptr);
|
|
|
| // FIXME: We should not be doing all this work inside the destructor
|
| @@ -203,18 +197,4 @@
|
| return page && this == page->mainFrame();
|
| }
|
|
|
| -void Frame::disconnectOwnerElement()
|
| -{
|
| - // FIXME: The semantics here are specific to LocalFrame and will need to change
|
| - // when RemoteFrames no longer have Documents.
|
| - if (ownerElement()) {
|
| - if (Document* doc = document())
|
| - doc->topDocument().clearAXObjectCache();
|
| - ownerElement()->clearContentFrame();
|
| - if (page())
|
| - page()->decrementSubframeCount();
|
| - }
|
| - m_ownerElement = 0;
|
| -}
|
| -
|
| } // namespace WebCore
|
|
|