Changeset 148041 in webkit


Ignore:
Timestamp:
Apr 9, 2013 1:06:14 PM (11 years ago)
Author:
zhajiang@rim.com
Message:

[BlackBerry] Main page is rendered at wrong large scale after back from any zooming article at read.thestar.com
https://bugs.webkit.org/show_bug.cgi?id=114296

Patch by Jacky Jiang <zhajiang@rim.com>.
Reviewed by Rob Buis.

PR: 308655
We were relying on the load state Committed to reset m_userPerformedManualZoom
and m_userPerformedManualScroll; however, the main resources of the
articles on read.thestar.com were preloaded and the WebPage didn't get
any load state change callbacks when going back to the main page from
the articles. Therefore, m_userPerformedManualZoom had never been reset
in this case and we picked up the wrong scale when restoring the main page.
Rset m_userPerformedManualScroll and m_userPerformedManualScroll when
we are going back or forward.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPage::goBackOrForward):

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

Legend:

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

    r147973 r148041  
    30373037{
    30383038    if (d->m_page->canGoBackOrForward(delta)) {
     3039        d->m_userPerformedManualZoom = false;
     3040        d->m_userPerformedManualScroll = false;
    30393041        d->m_backingStore->d->suspendScreenUpdates();
    30403042        d->m_page->goBackOrForward(delta);
  • trunk/Source/WebKit/blackberry/ChangeLog

    r148024 r148041  
     12013-04-09  Jacky Jiang  <zhajiang@rim.com>
     2
     3        [BlackBerry] Main page is rendered at wrong large scale after back from any zooming article at read.thestar.com
     4        https://bugs.webkit.org/show_bug.cgi?id=114296
     5
     6        Reviewed by Rob Buis.
     7
     8        PR: 308655
     9        We were relying on the load state Committed to reset m_userPerformedManualZoom
     10        and m_userPerformedManualScroll; however, the main resources of the
     11        articles on read.thestar.com were preloaded and the WebPage didn't get
     12        any load state change callbacks when going back to the main page from
     13        the articles. Therefore, m_userPerformedManualZoom had never been reset
     14        in this case and we picked up the wrong scale when restoring the main page.
     15        Rset m_userPerformedManualScroll and m_userPerformedManualScroll when
     16        we are going back or forward.
     17
     18        * Api/WebPage.cpp:
     19        (BlackBerry::WebKit::WebPage::goBackOrForward):
     20
    1212013-04-09  Alberto Garcia  <agarcia@igalia.com>
    222
Note: See TracChangeset for help on using the changeset viewer.