Changeset 68292 in webkit
- Timestamp:
- Sep 24, 2010 2:54:25 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r68286 r68292 1 2010-09-24 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Keep viewport information in Document 6 https://bugs.webkit.org/show_bug.cgi?id=46385 7 8 The viewport meta data (layout viewport, scale) needs to be set again when bringing 9 back a page from the page cache. As the viewport metadata is only retrieved while parsing 10 the document, we need to store it in the Document class. 11 12 * fast/viewport/viewport-128-expected.txt: Copied from LayoutTests/fast/viewport/viewport-19-expected.txt. 13 * fast/viewport/viewport-128.html: Added. 14 1 15 2010-09-24 Stephen White <senorblanco@chromium.org> 2 16 -
trunk/WebCore/ChangeLog
r68283 r68292 1 2010-09-24 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Keep viewport information in Document 6 https://bugs.webkit.org/show_bug.cgi?id=46385 7 8 The viewport meta data (layout viewport, scale) needs to be set again when bringing 9 back a page from the page cache. As the viewport metadata is only retrieved while parsing 10 the document, we need to store it in the Document class. 11 12 Test: fast/viewport/viewport-128.html 13 14 * WebCore.xcodeproj/project.pbxproj: 15 * dom/Document.cpp: 16 (WebCore::Document::processViewport): 17 (WebCore::Document::setInPageCache): 18 * dom/Document.h: 19 (WebCore::Document::viewportArguments): 20 1 21 2010-09-24 David Hyatt <hyatt@apple.com> 2 22 -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r68180 r68292 5173 5173 CEA3949D11D45CDA003094CF /* StaticHashSetNodeList.h in Headers */ = {isa = PBXBuildFile; fileRef = CEA3949B11D45CDA003094CF /* StaticHashSetNodeList.h */; }; 5174 5174 CEF418CE1179678C009D112C /* ViewportArguments.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CEF418CC1179678C009D112C /* ViewportArguments.cpp */; }; 5175 CEF418CF1179678C009D112C /* ViewportArguments.h in Headers */ = {isa = PBXBuildFile; fileRef = CEF418CD1179678C009D112C /* ViewportArguments.h */; };5175 CEF418CF1179678C009D112C /* ViewportArguments.h in Headers */ = {isa = PBXBuildFile; fileRef = CEF418CD1179678C009D112C /* ViewportArguments.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5176 5176 D000EBA211BDAFD400C47726 /* FrameLoaderStateMachine.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D000EBA011BDAFD400C47726 /* FrameLoaderStateMachine.cpp */; }; 5177 5177 D000EBA311BDAFD400C47726 /* FrameLoaderStateMachine.h in Headers */ = {isa = PBXBuildFile; fileRef = D000EBA111BDAFD400C47726 /* FrameLoaderStateMachine.h */; settings = {ATTRIBUTES = (Private, ); }; }; -
trunk/WebCore/dom/Document.cpp
r68240 r68292 130 130 #include "UIEvent.h" 131 131 #include "UserContentURLPattern.h" 132 #include "ViewportArguments.h"133 132 #include "WebKitAnimationEvent.h" 134 133 #include "WebKitTransitionEvent.h" … … 2591 2590 ASSERT(!features.isNull()); 2592 2591 2592 m_viewportArguments = ViewportArguments(); 2593 processArguments(features, (void*)&m_viewportArguments, &setViewportFeature); 2594 2593 2595 Frame* frame = this->frame(); 2594 if (!frame) 2595 return; 2596 2597 if (frame->page()) { 2598 ViewportArguments arguments; 2599 processArguments(features, (void*)&arguments, &setViewportFeature); 2600 2601 frame->page()->chrome()->client()->didReceiveViewportArguments(frame, arguments); 2602 } 2596 if (!frame || !frame->page()) 2597 return; 2598 2599 frame->page()->chrome()->client()->didReceiveViewportArguments(frame, m_viewportArguments); 2603 2600 } 2604 2601 … … 3816 3813 setRenderer(m_savedRenderer); 3817 3814 m_savedRenderer = 0; 3815 3816 if (frame() && frame()->page()) 3817 frame()->page()->chrome()->client()->didReceiveViewportArguments(frame(), m_viewportArguments); 3818 3818 3819 if (childNeedsStyleRecalc()) 3819 3820 scheduleStyleRecalc(); -
trunk/WebCore/dom/Document.h
r68198 r68292 37 37 #include "ScriptExecutionContext.h" 38 38 #include "Timer.h" 39 #include "ViewportArguments.h" 39 40 #include <wtf/FixedArray.h> 40 41 #include <wtf/HashCountedSet.h> … … 277 278 #endif 278 279 280 ViewportArguments viewportArguments() const { return m_viewportArguments; } 281 279 282 DocumentType* doctype() const { return m_docType.get(); } 280 283 … … 1315 1318 1316 1319 int m_loadEventDelayCount; 1320 1321 ViewportArguments m_viewportArguments; 1317 1322 }; 1318 1323 -
trunk/WebKit/qt/Api/qwebframe.cpp
r67762 r68292 231 231 } 232 232 233 WebCore::ViewportArguments QWebFramePrivate::viewportArguments() 234 { 235 if (!frame || !frame->document()) 236 return WebCore::ViewportArguments(); 237 238 return frame->document()->viewportArguments(); 239 } 240 233 241 void QWebFramePrivate::setPage(QWebPage* newPage) 234 242 { -
trunk/WebKit/qt/Api/qwebframe_p.h
r67376 r68292 91 91 #endif 92 92 93 WebCore::ViewportArguments viewportArguments(); 94 93 95 QWebFrame *q; 94 96 Qt::ScrollBarPolicy horizontalScrollBarPolicy; … … 102 104 int marginHeight; 103 105 bool zoomTextOnly; 104 WebCore::ViewportArguments viewportArguments;105 106 }; 106 107 -
trunk/WebKit/qt/Api/qwebpage.cpp
r68056 r68292 2349 2349 int deviceHeight = rect.height(); 2350 2350 2351 WebCore::ViewportConfiguration conf = WebCore::findConfigurationForViewportData(mainFrame()->d->viewportArguments , desktopWidth, deviceWidth, deviceHeight, deviceDPI, availableSize);2351 WebCore::ViewportConfiguration conf = WebCore::findConfigurationForViewportData(mainFrame()->d->viewportArguments(), desktopWidth, deviceWidth, deviceHeight, deviceDPI, availableSize); 2352 2352 2353 2353 ViewportConfiguration result; -
trunk/WebKit/qt/ChangeLog
r68204 r68292 1 2010-09-24 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Keep viewport information in Document 6 https://bugs.webkit.org/show_bug.cgi?id=46385 7 8 The viewport meta data (layout viewport, scale) needs to be set again when bringing 9 back a page from the page cache. As the viewport metadata is only retrieved while parsing 10 the document, we need to store it in the Document class. 11 12 * Api/qwebframe.cpp: 13 (QWebFramePrivate::viewportArguments): 14 * Api/qwebframe_p.h: 15 * Api/qwebpage.cpp: 16 (QWebPage::viewportConfigurationForSize): 17 * WebCoreSupport/ChromeClientQt.cpp: 18 (WebCore::ChromeClientQt::didReceiveViewportArguments): 19 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 20 (DumpRenderTreeSupportQt::viewportAsText): 21 * WebCoreSupport/FrameLoaderClientQt.cpp: 22 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 23 1 24 2010-09-23 Ademar de Souza Reis Jr <ademar.reis@openbossa.org> 2 25 -
trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp
r67612 r68292 645 645 void ChromeClientQt::didReceiveViewportArguments(Frame* frame, const ViewportArguments& arguments) const 646 646 { 647 m_webPage->mainFrame()->d->viewportArguments = arguments;648 649 647 emit m_webPage->viewportChangeRequested(); 650 648 } -
trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r67653 r68292 632 632 QString DumpRenderTreeSupportQt::viewportAsText(QWebPage* page, const QSize& availableSize) 633 633 { 634 WebCore::ViewportArguments args = page->mainFrame()->d->viewportArguments ;634 WebCore::ViewportArguments args = page->mainFrame()->d->viewportArguments(); 635 635 WebCore::ViewportConfiguration conf = WebCore::findConfigurationForViewportData(args, 636 636 /* desktop-width */ 980, -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r67612 r68292 443 443 return; 444 444 445 // Clear the viewport arguments.446 m_webFrame->d->viewportArguments = WebCore::ViewportArguments();447 448 445 emit m_webFrame->urlChanged(m_webFrame->url()); 449 446 m_webFrame->page()->d->updateNavigationActions();
Note: See TracChangeset
for help on using the changeset viewer.