Title: [124919] trunk/Source/WebCore
Revision
124919
Author
[email protected]
Date
2012-08-07 14:33:31 -0700 (Tue, 07 Aug 2012)

Log Message

50% fixed position coverage slow scroll heuristic is incorrect when invalidations aren't clipped
https://bugs.webkit.org/show_bug.cgi?id=92011

Reviewed by Simon Fraser.

The heuristic in scrollContentsFastPath to slow scroll by invalidating
the entire frame if fixed position elements cover 50% of the frame
takes away the ability of ports to make their own decisions about how
to best handle invalidations. Therefore, remove this heuristic.

* page/FrameView.cpp:
(WebCore::FrameView::scrollContentsFastPath):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (124918 => 124919)


--- trunk/Source/WebCore/ChangeLog	2012-08-07 21:31:32 UTC (rev 124918)
+++ trunk/Source/WebCore/ChangeLog	2012-08-07 21:33:31 UTC (rev 124919)
@@ -1,3 +1,18 @@
+2012-08-07  Adrienne Walker  <[email protected]>
+
+        50% fixed position coverage slow scroll heuristic is incorrect when invalidations aren't clipped
+        https://bugs.webkit.org/show_bug.cgi?id=92011
+
+        Reviewed by Simon Fraser.
+
+        The heuristic in scrollContentsFastPath to slow scroll by invalidating
+        the entire frame if fixed position elements cover 50% of the frame
+        takes away the ability of ports to make their own decisions about how
+        to best handle invalidations. Therefore, remove this heuristic.
+
+        * page/FrameView.cpp:
+        (WebCore::FrameView::scrollContentsFastPath):
+
 2012-08-07  Konrad Piascik  <[email protected]>
 
         [BlackBerry] Change how devicePixelRatio is set.

Modified: trunk/Source/WebCore/page/FrameView.cpp (124918 => 124919)


--- trunk/Source/WebCore/page/FrameView.cpp	2012-08-07 21:31:32 UTC (rev 124918)
+++ trunk/Source/WebCore/page/FrameView.cpp	2012-08-07 21:33:31 UTC (rev 124919)
@@ -1491,10 +1491,6 @@
             regionToUpdate.unite(updateRect);
     }
 
-    // The area to be painted by fixed objects exceeds 50% of the area of the view, we cannot use the fast path.
-    if (regionToUpdate.totalArea() > (clipRect.width() * clipRect.height() * 0.5))
-        return false;
-
     // 1) scroll
     hostWindow()->scroll(scrollDelta, rectToScroll, clipRect);
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to