Changeset 76065 in webkit


Ignore:
Timestamp:
Jan 18, 2011 2:22:21 PM (13 years ago)
Author:
andersca@apple.com
Message:

2011-01-18 Anders Carlsson <andersca@apple.com>

Reviewed by Dan Bernstein.

Ask the web page proxy to scroll the view when needed
https://bugs.webkit.org/show_bug.cgi?id=52665

  • UIProcess/DrawingAreaProxyImpl.cpp: (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
  • UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::scrollView):
  • UIProcess/WebPageProxy.h:
Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r76064 r76065  
     12011-01-18  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        Ask the web page proxy to scroll the view when needed
     6        https://bugs.webkit.org/show_bug.cgi?id=52665
     7
     8        * UIProcess/DrawingAreaProxyImpl.cpp:
     9        (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
     10        * UIProcess/WebPageProxy.cpp:
     11        (WebKit::WebPageProxy::scrollView):
     12        * UIProcess/WebPageProxy.h:
     13
    1142011-01-18  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp

    r75953 r76065  
    122122
    123123    if (!updateInfo.scrollRect.isEmpty()) {
    124         m_webPageProxy->setViewNeedsDisplay(updateInfo.scrollRect);
     124        m_webPageProxy->scrollView(updateInfo.scrollRect, updateInfo.scrollOffset);
    125125        m_webPageProxy->displayView();
    126126    }
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp

    r75979 r76065  
    476476}
    477477
     478void WebPageProxy::scrollView(const IntRect& scrollRect, const IntSize& scrollOffset)
     479{
     480    m_pageClient->scrollView(scrollRect, scrollOffset);
     481}
     482
    478483void WebPageProxy::viewStateDidChange(ViewStateFlags flags)
    479484{
  • trunk/Source/WebKit2/UIProcess/WebPageProxy.h

    r75979 r76065  
    174174    void setViewNeedsDisplay(const WebCore::IntRect&);
    175175    void displayView();
     176    void scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset);
    176177
    177178    enum {
Note: See TracChangeset for help on using the changeset viewer.