Changeset 109583 in webkit


Ignore:
Timestamp:
Mar 2, 2012 9:40:16 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Set the devicePixelRatio from the results of computeViewportAttributes
https://bugs.webkit.org/show_bug.cgi?id=80160

Patch by Konrad Piascik <kpiascik@rim.com> on 2012-03-02
Reviewed by Antonio Gomes.

Tested by going to layout test fast/viewport/viewport-95.html and viewport-93.html
Previously when executing window.devicePixelRatio these two pages returned 1 now
they report the devicePixelRatio returned by computeViewportAttributes.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::recomputeVirtualViewportFromViewportArguments):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r109506 r109583  
    30213021
    30223022    ViewportAttributes result = computeViewportAttributes(m_viewportArguments, desktopWidth, deviceWidth, deviceHeight, deviceDPI, m_defaultLayoutSize);
     3023    m_page->setDeviceScaleFactor(result.devicePixelRatio);
    30233024    return IntSize(result.layoutSize.width(), result.layoutSize.height());
    30243025}
  • trunk/Source/WebKit/blackberry/ChangeLog

    r109526 r109583  
     12012-03-02  Konrad Piascik  <kpiascik@rim.com>
     2
     3        [BlackBerry] Set the devicePixelRatio from the results of computeViewportAttributes
     4        https://bugs.webkit.org/show_bug.cgi?id=80160
     5
     6        Reviewed by Antonio Gomes.
     7
     8        Tested by going to layout test fast/viewport/viewport-95.html and viewport-93.html
     9        Previously when executing window.devicePixelRatio these two pages returned 1 now
     10        they report the devicePixelRatio returned by computeViewportAttributes.
     11
     12        * Api/WebPage.cpp:
     13        (BlackBerry::WebKit::WebPagePrivate::recomputeVirtualViewportFromViewportArguments):
     14
    1152012-03-02  Jacky Jiang  <zhajiang@rim.com>
    216
Note: See TracChangeset for help on using the changeset viewer.