Changeset 140289 in webkit


Ignore:
Timestamp:
Jan 20, 2013 6:31:15 PM (11 years ago)
Author:
charles.wei@torchmobile.com.cn
Message:

[BlackBerry] some websites only takes half of the screen after rotating from landscape to portrait mode.
https://bugs.webkit.org/show_bug.cgi?id=107103

Reviewed by George Staikos.
Internally reviewed by Jacky Jiang.

When the document size changes (by some javascript) which makes it too small to fit the viewport, we should
automatically zoom it to fit the viewport.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::layoutFinished):

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

Legend:

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

    r140046 r140289  
    16091609                notifyTransformedScrollChanged();
    16101610            }
     1611
     1612            // If the content size is too small, zoom it to fit the viewport.
     1613            if ((loadState() == Finished || loadState() == Committed)
     1614                && (transformedContentsSize().width() < transformedActualVisibleSize().width() || transformedContentsSize().height() < transformedActualVisibleSize().height()))
     1615                    zoomAboutPoint(initialScale(), newScrollPosition);
     1616
    16111617        }
    16121618    }
  • trunk/Source/WebKit/blackberry/ChangeLog

    r140282 r140289  
     12013-01-20  Charles Wei  <charles.wei@torchmobile.com.cn>
     2
     3        [BlackBerry] some websites only takes half of the screen after rotating from landscape to portrait mode.
     4        https://bugs.webkit.org/show_bug.cgi?id=107103
     5
     6        Reviewed by George Staikos.
     7        Internally reviewed by Jacky Jiang.
     8
     9        When the document size changes (by some javascript) which makes it too small to fit the viewport, we should
     10        automatically zoom it to fit the viewport.
     11
     12        * Api/WebPage.cpp:
     13        (BlackBerry::WebKit::WebPagePrivate::layoutFinished):
     14
    1152013-01-20  Tiancheng Jiang  <tijiang@rim.com>
    216
Note: See TracChangeset for help on using the changeset viewer.