⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 157602 in webkit


Ignore:
Timestamp:
Oct 17, 2013, 2:38:41 PM (13 years ago)
Author:
zhajiang@rim.com
Message:

[BlackBerry] Improve the viewport of some websites like mobilesyrup.com/2013/08/25/moto-x-review/
https://bugs.webkit.org/show_bug.cgi?id=122995

Patch by Jacky Jiang <zhajiang@blackberry.com> on 2013-10-17.
Reviewed by George Staikos.
Internally reviewed by George Staikos and Eli Fidler.

JIRA 523949
Force to respect the viewport when there is viewport meta tag but width
is not specified even though the viewport is broken. By doing that, We
want to improve the user experience of some websites that use a reasonable
initial-scale, but have some overly-wide contents

The contents of those websites like mobilesyrup.com/2013/08/25/moto-x-review
should be improved by the contents provider eventually.

  • 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

    r156692 r157602  
    33863386        return IntSize();
    33873387
     3388    // We want to respect viewport when width is not specified in the viewport meta tag in order to improve the
     3389    // user experience of some websites that use a reasonable initial-scale, but have some overly-wide contents.
     3390    if (m_viewportArguments.width == ViewportArguments::ValueAuto)
     3391        m_forceRespectViewportArguments = true;
     3392
    33883393    int desktopWidth = DEFAULT_MAX_LAYOUT_WIDTH;
    33893394    int deviceWidth = Platform::Graphics::Screen::primaryScreen()->width();
  • trunk/Source/WebKit/blackberry/ChangeLog

    r157534 r157602  
     12013-10-17  Jacky Jiang  <zhajiang@blackberry.com>
     2
     3        [BlackBerry] Improve the viewport of some websites like mobilesyrup.com/2013/08/25/moto-x-review/
     4        https://bugs.webkit.org/show_bug.cgi?id=122995
     5
     6        Reviewed by George Staikos.
     7        Internally reviewed by George Staikos and Eli Fidler.
     8
     9        JIRA 523949
     10        Force to respect the viewport when there is viewport meta tag but width
     11        is not specified even though the viewport is broken. By doing that, We
     12        want to improve the user experience of some websites that use a reasonable
     13        initial-scale, but have some overly-wide contents
     14
     15        The contents of those websites like mobilesyrup.com/2013/08/25/moto-x-review
     16        should be improved by the contents provider eventually.
     17
     18        * Api/WebPage.cpp:
     19        (BlackBerry::WebKit::WebPagePrivate::recomputeVirtualViewportFromViewportArguments):
     20
    1212013-10-16  Jochen Eisinger  <jochen@chromium.org>
    222
Note: See TracChangeset for help on using the changeset viewer.