Changeset 109583 in webkit
- Timestamp:
- Mar 2, 2012 9:40:16 AM (12 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r109506 r109583 3021 3021 3022 3022 ViewportAttributes result = computeViewportAttributes(m_viewportArguments, desktopWidth, deviceWidth, deviceHeight, deviceDPI, m_defaultLayoutSize); 3023 m_page->setDeviceScaleFactor(result.devicePixelRatio); 3023 3024 return IntSize(result.layoutSize.width(), result.layoutSize.height()); 3024 3025 } -
trunk/Source/WebKit/blackberry/ChangeLog
r109526 r109583 1 2012-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 1 15 2012-03-02 Jacky Jiang <zhajiang@rim.com> 2 16
Note: See TracChangeset
for help on using the changeset viewer.