Commit 987ad2e1 authored by andersca@apple.com's avatar andersca@apple.com
Browse files

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:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent b17b6a77
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:
2011-01-18 Anders Carlsson <andersca@apple.com>
 
Fix build.
......@@ -121,7 +121,7 @@ void DrawingAreaProxyImpl::incorporateUpdate(const UpdateInfo& updateInfo)
m_webPageProxy->setViewNeedsDisplay(updateInfo.updateRects[i]);
if (!updateInfo.scrollRect.isEmpty()) {
m_webPageProxy->setViewNeedsDisplay(updateInfo.scrollRect);
m_webPageProxy->scrollView(updateInfo.scrollRect, updateInfo.scrollOffset);
m_webPageProxy->displayView();
}
}
......
......@@ -475,6 +475,11 @@ void WebPageProxy::displayView()
m_pageClient->displayView();
}
void WebPageProxy::scrollView(const IntRect& scrollRect, const IntSize& scrollOffset)
{
m_pageClient->scrollView(scrollRect, scrollOffset);
}
void WebPageProxy::viewStateDidChange(ViewStateFlags flags)
{
if (!isValid())
......
......@@ -173,6 +173,7 @@ public:
void setViewNeedsDisplay(const WebCore::IntRect&);
void displayView();
void scrollView(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset);
enum {
ViewWindowIsActive = 1 << 0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment