Title: [113967] trunk/Source/WebCore
Revision
113967
Author
[email protected]
Date
2012-04-12 06:22:26 -0700 (Thu, 12 Apr 2012)

Log Message

Calculate the cover rect of tiled backing store with the trajectory vector.
https://bugs.webkit.org/show_bug.cgi?id=83462

Patch by JungJik Lee <[email protected]> on 2012-04-12
Reviewed by Kenneth Rohde Christiansen.

When trajectory vector is not zero, it is able to calculate the proper cover area.
No new tests - no new functionality.

* platform/graphics/TiledBackingStore.cpp:
(WebCore::TiledBackingStore::computeCoverAndKeepRect):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (113966 => 113967)


--- trunk/Source/WebCore/ChangeLog	2012-04-12 13:12:48 UTC (rev 113966)
+++ trunk/Source/WebCore/ChangeLog	2012-04-12 13:22:26 UTC (rev 113967)
@@ -1,3 +1,16 @@
+2012-04-12  JungJik Lee  <[email protected]>
+
+        Calculate the cover rect of tiled backing store with the trajectory vector.
+        https://bugs.webkit.org/show_bug.cgi?id=83462
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        When trajectory vector is not zero, it is able to calculate the proper cover area.
+        No new tests - no new functionality.
+
+        * platform/graphics/TiledBackingStore.cpp:
+        (WebCore::TiledBackingStore::computeCoverAndKeepRect):
+
 2012-04-12  Pavel Feldman  <[email protected]>
 
         Web Inspector: extracting NetworkRequest from Resource (step 2)

Modified: trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp (113966 => 113967)


--- trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp	2012-04-12 13:12:48 UTC (rev 113966)
+++ trunk/Source/WebCore/platform/graphics/TiledBackingStore.cpp	2012-04-12 13:22:26 UTC (rev 113967)
@@ -349,7 +349,7 @@
         coverRect.inflateY(visibleRect.height() * (m_coverAreaMultiplier - 1) / 2);
         keepRect = coverRect;
 
-        if (m_trajectoryVector == FloatPoint::zero()) {
+        if (m_trajectoryVector != FloatPoint::zero()) {
             // A null trajectory vector (no motion) means that tiles for the coverArea will be created.
             // A non-null trajectory vector will shrink the covered rect to visibleRect plus its expansion from its
             // center toward the cover area edges in the direction of the given vector.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to