[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

andersca at apple.com andersca at apple.com
Wed Dec 22 16:00:11 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 52d4d006c0d38363d73bc39829748f2e625aa5b3
Author: andersca at apple.com <andersca at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Nov 17 20:52:33 2010 +0000

    Need way to invalidate part of a WKOverlayRef so it will be redrawn
    https://bugs.webkit.org/show_bug.cgi?id=49679
    <rdar://problem/8679152>
    
    Reviewed by Darin Adler.
    
    * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
    (WKBundlePageOverlaySetNeedsDisplay):
    * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
    * WebProcess/WebPage/PageOverlay.cpp:
    (WebKit::PageOverlay::setNeedsDisplay):
    * WebProcess/WebPage/PageOverlay.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72234 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index 24cd543..1763f8f 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,3 +1,18 @@
+2010-11-17  Anders Carlsson  <andersca at apple.com>
+
+        Reviewed by Darin Adler.
+
+        Need way to invalidate part of a WKOverlayRef so it will be redrawn
+        https://bugs.webkit.org/show_bug.cgi?id=49679
+        <rdar://problem/8679152>
+
+        * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
+        (WKBundlePageOverlaySetNeedsDisplay):
+        * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
+        * WebProcess/WebPage/PageOverlay.cpp:
+        (WebKit::PageOverlay::setNeedsDisplay):
+        * WebProcess/WebPage/PageOverlay.h:
+
 2010-11-17  Timothy Hatcher  <timothy at apple.com>
 
         Provide a way to create a WKView (WebPage) that is hidden from
diff --git a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
index 0ee81d9..bb9e240 100644
--- a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
+++ b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
@@ -101,3 +101,8 @@ WKBundlePageOverlayRef WKBundlePageOverlayCreate(WKBundlePageOverlayClient* wkCl
 
     return toAPI(PageOverlay::create(clientImpl.leakPtr()).leakRef());
 }
+
+void WKBundlePageOverlaySetNeedsDisplay(WKBundlePageOverlayRef bundlePageOverlayRef, WKRect rect)
+{
+    toImpl(bundlePageOverlayRef)->setNeedsDisplay(enclosingIntRect(toImpl(rect)));
+}
diff --git a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h
index 02cadc9..af4299d 100644
--- a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h
+++ b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h
@@ -56,6 +56,7 @@ typedef struct WKBundlePageOverlayClient WKBundlePageOverlayClient;
 WK_EXPORT WKTypeID WKBundlePageOverlayGetTypeID();
 
 WK_EXPORT WKBundlePageOverlayRef WKBundlePageOverlayCreate(WKBundlePageOverlayClient* client);
+WK_EXPORT void WKBundlePageOverlaySetNeedsDisplay(WKBundlePageOverlayRef bundlePageOverlay, WKRect rect);
 
 #ifdef __cplusplus
 }
diff --git a/WebKit2/WebProcess/WebPage/PageOverlay.cpp b/WebKit2/WebProcess/WebPage/PageOverlay.cpp
index 18d7203..7e7d286 100644
--- a/WebKit2/WebProcess/WebPage/PageOverlay.cpp
+++ b/WebKit2/WebProcess/WebPage/PageOverlay.cpp
@@ -70,9 +70,14 @@ void PageOverlay::setPage(WebPage* webPage)
     m_client->didMoveToWebPage(this, webPage);
 }
 
+void PageOverlay::setNeedsDisplay(const WebCore::IntRect& dirtyRect)
+{
+    m_webPage->drawingArea()->setNeedsDisplay(dirtyRect);
+}
+
 void PageOverlay::setNeedsDisplay()
 {
-    m_webPage->drawingArea()->setNeedsDisplay(bounds());
+    setNeedsDisplay(bounds());
 }
 
 void PageOverlay::drawRect(GraphicsContext& graphicsContext, const IntRect& dirtyRect)
diff --git a/WebKit2/WebProcess/WebPage/PageOverlay.h b/WebKit2/WebProcess/WebPage/PageOverlay.h
index 012cf22..6f1f70f 100644
--- a/WebKit2/WebProcess/WebPage/PageOverlay.h
+++ b/WebKit2/WebProcess/WebPage/PageOverlay.h
@@ -59,6 +59,7 @@ public:
     virtual ~PageOverlay();
 
     void setPage(WebPage*);
+    void setNeedsDisplay(const WebCore::IntRect& dirtyRect);
     void setNeedsDisplay();
 
     void drawRect(WebCore::GraphicsContext&, const WebCore::IntRect& dirtyRect);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list