Changeset 115998 in webkit
- Timestamp:
- May 3, 2012 12:41:39 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/fast/viewport/viewport-86-expected.txt
r88134 r115998 1 viewport size 457x50 3scale 0.700000 with limits [0.700000, 5.000000] and userScalable -1.0000001 viewport size 457x502 scale 0.700000 with limits [0.700000, 5.000000] and userScalable -1.000000 2 2 -
trunk/LayoutTests/platform/gtk/test_expectations.txt
r115892 r115998 1297 1297 BUGWK71022 : fast/canvas/canvas-composite-image.html = FAIL 1298 1298 BUGWK71022 : fast/canvas/canvas-composite-canvas.html = FAIL 1299 1300 // REGRESSION(r99195)1301 BUGWK70609 : fast/viewport/viewport-121.html = FAIL1302 BUGWK70609 : fast/viewport/viewport-122.html = FAIL1303 BUGWK70609 : fast/viewport/viewport-125.html = FAIL1304 BUGWK70609 : fast/viewport/viewport-129.html = FAIL1305 BUGWK70609 : fast/viewport/viewport-18.html = FAIL1306 BUGWK70609 : fast/viewport/viewport-36.html = FAIL1307 BUGWK70609 : fast/viewport/viewport-37.html = FAIL1308 BUGWK70609 : fast/viewport/viewport-43.html = FAIL1309 BUGWK70609 : fast/viewport/viewport-46.html = FAIL1310 BUGWK70609 : fast/viewport/viewport-52.html = FAIL1311 BUGWK70609 : fast/viewport/viewport-53.html = FAIL1312 BUGWK70609 : fast/viewport/viewport-54.html = FAIL1313 BUGWK70609 : fast/viewport/viewport-55.html = FAIL1314 BUGWK70609 : fast/viewport/viewport-60.html = FAIL1315 BUGWK70609 : fast/viewport/viewport-75.html = FAIL1316 BUGWK70609 : fast/viewport/viewport-76.html = FAIL1317 BUGWK70609 : fast/viewport/viewport-83.html = FAIL1318 BUGWK70609 : fast/viewport/viewport-86.html = FAIL1319 BUGWK70609 : fast/viewport/viewport-warnings-3.html = FAIL1320 BUGWK70609 : fast/viewport/viewport-warnings-4.html = FAIL1321 BUGWK70609 : fast/viewport/viewport-warnings-6.html = FAIL1322 1299 1323 1300 // viewport meta tag tests that failed because window.devicePixelRatio is not implemented -
trunk/LayoutTests/platform/qt/Skipped
r115941 r115998 2460 2460 fast/canvas/canvas-composite-canvas.html 2461 2461 2462 # REGRESSION(r99195)2463 # https://bugs.webkit.org/show_bug.cgi?id=706092464 fast/viewport/viewport-83.html2465 fast/viewport/viewport-54.html2466 fast/viewport/viewport-37.html2467 fast/viewport/viewport-121.html2468 fast/viewport/viewport-86.html2469 fast/viewport/viewport-52.html2470 fast/viewport/viewport-129.html2471 fast/viewport/viewport-36.html2472 fast/viewport/viewport-122.html2473 fast/viewport/viewport-125.html2474 fast/viewport/viewport-60.html2475 fast/viewport/viewport-55.html2476 fast/viewport/viewport-18.html2477 fast/viewport/viewport-46.html2478 fast/viewport/viewport-warnings-4.html2479 fast/viewport/viewport-43.html2480 fast/viewport/viewport-53.html2481 fast/viewport/viewport-75.html2482 fast/viewport/viewport-76.html2483 fast/viewport/viewport-warnings-6.html2484 fast/viewport/viewport-warnings-3.html2485 2486 2462 # track not functional yet. 2487 2463 fast/events/constructors/track-event-constructor.html -
trunk/Source/WebCore/ChangeLog
r115997 r115998 1 2012-05-03 Fady Samuel <fsamuel@chromium.org> 2 3 Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport 4 https://bugs.webkit.org/show_bug.cgi?id=70609 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Make Viewport Attributes' layoutSize be a FloatRect to avoid rounding 9 too early, and the occasional off by one fixed layout dimensions. 10 11 * dom/ViewportArguments.cpp: 12 (WebCore::computeViewportAttributes): 13 * dom/ViewportArguments.h: 14 (ViewportAttributes): 15 1 16 2012-05-03 Joshua Bell <jsbell@chromium.org> 2 17 -
trunk/Source/WebCore/dom/ViewportArguments.cpp
r115939 r115998 178 178 width = max<float>(width, availableWidth / result.initialScale); 179 179 height = max<float>(height, availableHeight / result.initialScale); 180 result.layoutSize.setWidth( static_cast<int>(roundf(width)));181 result.layoutSize.setHeight( static_cast<int>(roundf(height)));180 result.layoutSize.setWidth(width); 181 result.layoutSize.setHeight(height); 182 182 183 183 result.userScalable = args.userScalable; -
trunk/Source/WebCore/dom/ViewportArguments.h
r115939 r115998 28 28 #define ViewportArguments_h 29 29 30 #include " IntSize.h"30 #include "FloatSize.h" 31 31 #include <wtf/Forward.h> 32 32 … … 44 44 45 45 struct ViewportAttributes { 46 IntSize layoutSize;46 FloatSize layoutSize; 47 47 48 48 float devicePixelRatio; -
trunk/Source/WebKit/blackberry/ChangeLog
r115974 r115998 1 2012-05-03 Fady Samuel <fsamuel@chromium.org> 2 3 Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport 4 https://bugs.webkit.org/show_bug.cgi?id=70609 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 * WebKitSupport/DumpRenderTreeSupport.cpp: 9 (DumpRenderTreeSupport::dumpConfigurationForViewport): 10 1 11 2012-05-03 Mike Fenton <mifenton@rim.com> 2 12 -
trunk/Source/WebKit/blackberry/WebKitSupport/DumpRenderTreeSupport.cpp
r112720 r115998 92 92 restrictScaleFactorToInitialScaleIfNotUserScalable(attrs); 93 93 94 fprintf(stdout, "viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", attrs.layoutSize.width(), attrs.layoutSize.height(), attrs.initialScale, attrs.minimumScale, attrs.maximumScale, attrs.userScalable);94 fprintf(stdout, "viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", static_cast<int>(attrs.layoutSize.width()), static_cast<int>(attrs.layoutSize.height()), attrs.initialScale, attrs.minimumScale, attrs.maximumScale, attrs.userScalable); 95 95 } 96 96 -
trunk/Source/WebKit/efl/ChangeLog
r115926 r115998 1 2012-05-03 Fady Samuel <fsamuel@chromium.org> 2 3 Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport 4 https://bugs.webkit.org/show_bug.cgi?id=70609 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: 9 (DumpRenderTreeSupportEfl::dumpConfigurationForViewport): 10 1 11 2012-04-18 Jon Honeycutt <jhoneycutt@apple.com> 2 12 -
trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp
r115332 r115998 535 535 restrictMinimumScaleFactorToViewportSize(attributes, availableSize); 536 536 restrictScaleFactorToInitialScaleIfNotUserScalable(attributes); 537 fprintf(stdout, "viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", attributes.layoutSize.width(), attributes.layoutSize.height(), attributes.initialScale, attributes.minimumScale, attributes.maximumScale, attributes.userScalable);537 fprintf(stdout, "viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", static_cast<int>(attributes.layoutSize.width()), static_cast<int>(attributes.layoutSize.height()), attributes.initialScale, attributes.minimumScale, attributes.maximumScale, attributes.userScalable); 538 538 } 539 539 -
trunk/Source/WebKit/gtk/ChangeLog
r115926 r115998 1 2012-05-03 Fady Samuel <fsamuel@chromium.org> 2 3 Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport 4 https://bugs.webkit.org/show_bug.cgi?id=70609 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 * WebCoreSupport/DumpRenderTreeSupportGtk.cpp: 9 (DumpRenderTreeSupportGtk::dumpConfigurationForViewport): 10 1 11 2012-04-18 Jon Honeycutt <jhoneycutt@apple.com> 2 12 -
trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp
r115621 r115998 672 672 restrictMinimumScaleFactorToViewportSize(attrs, IntSize(availableWidth, availableHeight)); 673 673 restrictScaleFactorToInitialScaleIfNotUserScalable(attrs); 674 fprintf(stdout, "viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", attrs.layoutSize.width(), attrs.layoutSize.height(), attrs.initialScale, attrs.minimumScale, attrs.maximumScale, attrs.userScalable);674 fprintf(stdout, "viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", static_cast<int>(attrs.layoutSize.width()), static_cast<int>(attrs.layoutSize.height()), attrs.initialScale, attrs.minimumScale, attrs.maximumScale, attrs.userScalable); 675 675 } 676 676 -
trunk/Source/WebKit/qt/Api/qwebpage.cpp
r115939 r115998 2534 2534 2535 2535 result.m_isValid = true; 2536 result.m_size = conf.layoutSize;2536 result.m_size = QSizeF(conf.layoutSize.width(), conf.layoutSize.height()); 2537 2537 result.m_initialScaleFactor = conf.initialScale; 2538 2538 result.m_minimumScaleFactor = conf.minimumScale; -
trunk/Source/WebKit/qt/Api/qwebpage.h
r115939 r115998 233 233 inline bool isUserScalable() const { return m_isUserScalable; } 234 234 inline bool isValid() const { return m_isValid; } 235 inline QSize size() const { return m_size; }235 inline QSizeF size() const { return m_size; } 236 236 237 237 private: … … 243 243 bool m_isUserScalable; 244 244 bool m_isValid; 245 QSize m_size;245 QSizeF m_size; 246 246 247 247 friend class WebCore::ChromeClientQt; -
trunk/Source/WebKit/qt/ChangeLog
r115943 r115998 1 2012-05-03 Fady Samuel <fsamuel@chromium.org> 2 3 Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport 4 https://bugs.webkit.org/show_bug.cgi?id=70609 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 * Api/qwebpage.cpp: 9 (QWebPage::viewportAttributesForSize): 10 * Api/qwebpage.h: 11 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 12 (DumpRenderTreeSupportQt::viewportAsText): 13 1 14 2012-04-27 Jon Lee <jonlee@apple.com> 2 15 -
trunk/Source/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r115939 r115998 812 812 QString res; 813 813 res = res.sprintf("viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", 814 conf.layoutSize.width(),815 conf.layoutSize.height(),814 static_cast<int>(conf.layoutSize.width()), 815 static_cast<int>(conf.layoutSize.height()), 816 816 conf.initialScale, 817 817 conf.minimumScale, -
trunk/Source/WebKit2/ChangeLog
r115973 r115998 1 2012-05-03 Fady Samuel <fsamuel@chromium.org> 2 3 Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport 4 https://bugs.webkit.org/show_bug.cgi?id=70609 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 * UIProcess/API/qt/qwebviewportinfo.cpp: 9 (QWebViewportInfo::layoutSize): 10 * WebProcess/WebPage/WebPage.cpp: 11 (WebKit::WebPage::sendViewportAttributesChanged): 12 (WebKit::WebPage::viewportConfigurationAsText): 13 1 14 2012-05-03 Michael Brüning <michael.bruning@nokia.com> 2 15 -
trunk/Source/WebKit2/UIProcess/API/qt/qwebviewportinfo.cpp
r115939 r115998 78 78 QVariant QWebViewportInfo::layoutSize() const 79 79 { 80 return QSize (m_webViewPrivate->attributes.layoutSize);80 return QSizeF(m_webViewPrivate->attributes.layoutSize.width(), m_webViewPrivate->attributes.layoutSize.height()); 81 81 } 82 82 -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r115948 r115998 883 883 ViewportAttributes attr = computeViewportAttributes(m_page->viewportArguments(), minimumLayoutFallbackWidth, settings->deviceWidth(), settings->deviceHeight(), static_cast<int>(160 * settings->devicePixelRatio()), m_viewportSize); 884 884 885 setResizesToContentsUsingLayoutSize( attr.layoutSize);885 setResizesToContentsUsingLayoutSize(IntSize(static_cast<int>(attr.layoutSize.width()), static_cast<int>(attr.layoutSize.height()))); 886 886 send(Messages::WebPageProxy::DidChangeViewportProperties(attr)); 887 887 } … … 3044 3044 WebCore::restrictMinimumScaleFactorToViewportSize(attrs, IntSize(availableWidth, availableHeight)); 3045 3045 WebCore::restrictScaleFactorToInitialScaleIfNotUserScalable(attrs); 3046 return String::format("viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", attrs.layoutSize.width(), attrs.layoutSize.height(), attrs.initialScale, attrs.minimumScale, attrs.maximumScale, attrs.userScalable);3046 return String::format("viewport size %dx%d scale %f with limits [%f, %f] and userScalable %f\n", static_cast<int>(attrs.layoutSize.width()), static_cast<int>(attrs.layoutSize.height()), attrs.initialScale, attrs.minimumScale, attrs.maximumScale, attrs.userScalable); 3047 3047 } 3048 3048
Note: See TracChangeset
for help on using the changeset viewer.