diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-15 16:08:57 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-15 16:08:57 +0200 |
commit | 5466563f4b5b6b86523e3f89bb7f77e5b5270c78 (patch) | |
tree | 8caccf7cd03a15207cde3ba282c88bf132482a91 /Source/WebCore/page/Frame.cpp | |
parent | 33b26980cb24288b5a9f2590ccf32a949281bb79 (diff) | |
download | qtwebkit-5466563f4b5b6b86523e3f89bb7f77e5b5270c78.tar.gz |
Imported WebKit commit 0dc6cd75e1d4836eaffbb520be96fac4847cc9d2 (http://svn.webkit.org/repository/webkit/trunk@131300)
WebKit update which introduces the QtWebKitWidgets module that contains the WK1
widgets based API. (In fact it renames QtWebKit to QtWebKitWidgets while we're
working on completing the entire split as part of
https://bugs.webkit.org/show_bug.cgi?id=99314
Diffstat (limited to 'Source/WebCore/page/Frame.cpp')
-rw-r--r-- | Source/WebCore/page/Frame.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/WebCore/page/Frame.cpp b/Source/WebCore/page/Frame.cpp index a7aaf954b..6205fa6ce 100644 --- a/Source/WebCore/page/Frame.cpp +++ b/Source/WebCore/page/Frame.cpp @@ -184,7 +184,7 @@ inline Frame::Frame(Page* page, HTMLFrameOwnerElement* ownerElement, FrameLoader setTiledBackingStoreEnabled(page->settings()->tiledBackingStoreEnabled()); #endif } else { - page->incrementFrameCount(); + page->incrementSubframeCount(); // Make sure we will not end up with two frames referencing the same owner element. Frame*& contentFrameSlot = ownerElement->m_contentFrame; @@ -579,7 +579,7 @@ void Frame::injectUserScripts(UserScriptInjectionTime injectionTime) return; UserScriptMap::const_iterator end = userScripts->end(); for (UserScriptMap::const_iterator it = userScripts->begin(); it != end; ++it) - injectUserScriptsForWorld(it->first.get(), *it->second, injectionTime); + injectUserScriptsForWorld(it->key.get(), *it->value, injectionTime); } void Frame::injectUserScriptsForWorld(DOMWrapperWorld* world, const UserScriptVector& userScripts, UserScriptInjectionTime injectionTime) @@ -704,7 +704,7 @@ void Frame::disconnectOwnerElement() doc->clearAXObjectCache(); m_ownerElement->m_contentFrame = 0; if (m_page) - m_page->decrementFrameCount(); + m_page->decrementSubframeCount(); } m_ownerElement = 0; } @@ -876,7 +876,7 @@ Color Frame::tiledBackingStoreBackgroundColor() const } #endif -String Frame::layerTreeAsText(bool showDebugInfo) const +String Frame::layerTreeAsText(LayerTreeFlags flags) const { #if USE(ACCELERATED_COMPOSITING) document()->updateLayout(); @@ -884,9 +884,9 @@ String Frame::layerTreeAsText(bool showDebugInfo) const if (!contentRenderer()) return String(); - return contentRenderer()->compositor()->layerTreeAsText(showDebugInfo); + return contentRenderer()->compositor()->layerTreeAsText(flags); #else - UNUSED_PARAM(showDebugInfo); + UNUSED_PARAM(flags); return String(); #endif } @@ -956,8 +956,9 @@ float Frame::frameScaleFactor() const Page* page = this->page(); // Main frame is scaled with respect to he container but inner frames are not scaled with respect to the main frame. - if (!page || page->mainFrame() != this) + if (!page || page->mainFrame() != this || page->settings()->applyPageScaleFactorInCompositor()) return 1; + return page->pageScaleFactor(); } |