Changeset 125036 in webkit


Ignore:
Timestamp:
Aug 8, 2012 7:41:39 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Add relayout after updating fixed reported size
https://bugs.webkit.org/show_bug.cgi?id=93116
PR #160059

Patch by Ed Baker <edbaker@rim.com> on 2012-08-08
Reviewed by Antonio Gomes.

Reviewed internally by Antonio Gomes.

On an orientation change and after fixed reported size is
updated perform a layout and update the fixed elements after
scrolling. This will recalculate the height and width of
fixed position elements using percentage values with the
new fixed reported size. Otherwise using the old fixed reported
size in the new orientation overflowing or clipping could occur.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::setViewportSize):

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

Legend:

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

    r124918 r125036  
    39173917        m_mainFrame->view()->setFixedReportedSize(actualVisibleRect.size());
    39183918        m_mainFrame->view()->repaintFixedElementsAfterScrolling();
     3919        requestLayoutIfNeeded();
     3920        m_mainFrame->view()->updateFixedElementsAfterScrolling();
    39193921    }
    39203922
  • trunk/Source/WebKit/blackberry/ChangeLog

    r124982 r125036  
     12012-08-08  Ed Baker  <edbaker@rim.com>
     2
     3        [BlackBerry] Add relayout after updating fixed reported size
     4        https://bugs.webkit.org/show_bug.cgi?id=93116
     5        PR #160059
     6       
     7        Reviewed by Antonio Gomes.
     8       
     9        Reviewed internally by Antonio Gomes.
     10
     11        On an orientation change and after fixed reported size is
     12        updated perform a layout and update the fixed elements after
     13        scrolling. This will recalculate the height and width of
     14        fixed position elements using percentage values with the
     15        new fixed reported size. Otherwise using the old fixed reported
     16        size in the new orientation overflowing or clipping could occur.
     17       
     18        * Api/WebPage.cpp:
     19        (BlackBerry::WebKit::WebPagePrivate::setViewportSize):
     20
    1212012-08-07  Charles Wei  <charles.wei@torchmobile.com.cn>
    222
Note: See TracChangeset for help on using the changeset viewer.