Changeset 150802 in webkit


Ignore:
Timestamp:
May 28, 2013 7:08:55 AM (11 years ago)
Author:
marcelo.lira@openbossa.org
Message:

[WK2][CoordinatedGraphics] DrawingArea's visible content area must be updated when contents size changes
https://bugs.webkit.org/show_bug.cgi?id=116845

Reviewed by Noam Rosenthal.

  • UIProcess/CoordinatedGraphics/WebView.cpp:

(WebKit::WebView::didChangeContentsSize):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r150798 r150802  
     12013-05-28  Marcelo Lira  <marcelo.lira@openbossa.org>
     2
     3        [WK2][CoordinatedGraphics] DrawingArea's visible content area must be updated when contents size changes
     4        https://bugs.webkit.org/show_bug.cgi?id=116845
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        * UIProcess/CoordinatedGraphics/WebView.cpp:
     9        (WebKit::WebView::didChangeContentsSize):
     10
    1112013-05-28  Noam Rosenthal  <noam@webkit.org>
    212
  • trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.cpp

    r150764 r150802  
    187187void WebView::didChangeContentsSize(const WebCore::IntSize& size)
    188188{
     189    if (m_contentsSize == size)
     190        return;
     191
    189192    m_contentsSize = size;
    190193    m_client.didChangeContentsSize(this, size);
     194
     195    updateViewportSize();
    191196}
    192197
Note: See TracChangeset for help on using the changeset viewer.