diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
commit | 284837daa07b29d6a63a748544a90b1f5842ac5c (patch) | |
tree | ecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/WebCore/page/Frame.cpp | |
parent | 2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff) | |
download | qtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz |
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/WebCore/page/Frame.cpp')
-rw-r--r-- | Source/WebCore/page/Frame.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WebCore/page/Frame.cpp b/Source/WebCore/page/Frame.cpp index 1874ddef2..471726729 100644 --- a/Source/WebCore/page/Frame.cpp +++ b/Source/WebCore/page/Frame.cpp @@ -303,11 +303,10 @@ void Frame::setDocument(PassRefPtr<Document> newDoc) if (m_doc && !m_doc->attached()) m_doc->attach(); - // Update the cached 'document' property, which is now stale. - m_script.updateDocument(); - - if (m_doc) + if (m_doc) { + m_script.updateDocument(); m_doc->updateViewportArguments(); + } if (m_page && m_page->mainFrame() == this) { notifyChromeClientWheelEventHandlerCountChanged(); @@ -675,7 +674,7 @@ void Frame::dispatchVisibilityStateChangeEvent() void Frame::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const { - MemoryClassInfo info(memoryObjectInfo, this, MemoryInstrumentation::DOM); + MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); info.addInstrumentedMember(m_doc.get()); info.addInstrumentedMember(m_loader); } @@ -725,7 +724,7 @@ String Frame::displayStringModifiedByEncoding(const String& str) const VisiblePosition Frame::visiblePositionForPoint(const IntPoint& framePoint) { - HitTestResult result = eventHandler()->hitTestResultAtPoint(framePoint, true); + HitTestResult result = eventHandler()->hitTestResultAtPoint(framePoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::AllowShadowContent); Node* node = result.innerNonSharedNode(); if (!node) return VisiblePosition(); @@ -747,7 +746,7 @@ Document* Frame::documentAtPoint(const IntPoint& point) HitTestResult result = HitTestResult(pt); if (contentRenderer()) - result = eventHandler()->hitTestResultAtPoint(pt, false); + result = eventHandler()->hitTestResultAtPoint(pt); return result.innerNode() ? result.innerNode()->document() : 0; } @@ -851,7 +850,7 @@ void Frame::tiledBackingStorePaintEnd(const Vector<IntRect>& paintedArea) return; unsigned size = paintedArea.size(); // Request repaint from the system - for (int n = 0; n < size; ++n) + for (unsigned n = 0; n < size; ++n) m_page->chrome()->invalidateContentsAndRootView(m_view->contentsToRootView(paintedArea[n]), false); } |