[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

eric at webkit.org eric at webkit.org
Wed Apr 7 23:24:21 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit db2f63590b8e11654902a3609882edf137d1e64d
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Nov 5 23:08:47 2009 +0000

    2009-11-05  Scott Violet  <sky at google.com>
    
            Reviewed by Dimitri Glazkov.
    
            Need notification of scrolling frame
            https://bugs.webkit.org/show_bug.cgi?id=31145
    
            Adds FrameLoaderClient::didChangeScrollOffset that is called when
            the frame scrolls. This will be used to know when history state
            needs to be updated.
    
            * loader/FrameLoaderClient.h:
            (WebCore::FrameLoaderClient::didChangeScrollOffset):
            * page/FrameView.cpp:
            (WebCore::FrameView::valueChanged):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50580 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index ef8d126..9c1c23d 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,19 @@
+2009-11-05  Scott Violet  <sky at google.com>
+
+        Reviewed by Dimitri Glazkov.
+
+        Need notification of scrolling frame
+        https://bugs.webkit.org/show_bug.cgi?id=31145
+
+        Adds FrameLoaderClient::didChangeScrollOffset that is called when
+        the frame scrolls. This will be used to know when history state
+        needs to be updated.
+
+        * loader/FrameLoaderClient.h:
+        (WebCore::FrameLoaderClient::didChangeScrollOffset):
+        * page/FrameView.cpp:
+        (WebCore::FrameView::valueChanged):
+
 2009-11-05  Kenneth Russell  <kbr at google.com>
 
         Reviewed by Dimitri Glazkov.
diff --git a/WebCore/loader/FrameLoaderClient.h b/WebCore/loader/FrameLoaderClient.h
index b04fc55..68e0b4c 100644
--- a/WebCore/loader/FrameLoaderClient.h
+++ b/WebCore/loader/FrameLoaderClient.h
@@ -247,6 +247,8 @@ namespace WebCore {
         virtual bool shouldUsePluginDocument(const String& /*mimeType*/) const { return false; }
         virtual bool shouldLoadMediaElementURL(const KURL&) const { return true; }
 
+        virtual void didChangeScrollOffset() { }
+
         virtual bool allowJavaScript(bool enabledPerSettings) { return enabledPerSettings; }
     };
 
diff --git a/WebCore/page/FrameView.cpp b/WebCore/page/FrameView.cpp
index 04da5e3..7b97392 100644
--- a/WebCore/page/FrameView.cpp
+++ b/WebCore/page/FrameView.cpp
@@ -1450,6 +1450,7 @@ void FrameView::valueChanged(Scrollbar* bar)
     ScrollView::valueChanged(bar);
     if (offset != scrollOffset())
         frame()->eventHandler()->sendScrollEvent();
+    frame()->loader()->client()->didChangeScrollOffset();
 }
 
 void FrameView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect)

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list