Calculate the cover rect of tiled backing store with the trajectory vector.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 13:22:26 +0000 (13:22 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Apr 2012 13:22:26 +0000 (13:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=83462

Patch by JungJik Lee <jungjik.lee@samsung.com> 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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113967 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/TiledBackingStore.cpp

index a22ef1b..6bbe5d0 100644 (file)
@@ -1,3 +1,16 @@
+2012-04-12  JungJik Lee  <jungjik.lee@samsung.com>
+
+        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  <pfeldman@chromium.org>
 
         Web Inspector: extracting NetworkRequest from Resource (step 2)
index 58432ce..8484da9 100644 (file)
@@ -349,7 +349,7 @@ void TiledBackingStore::computeCoverAndKeepRect(const IntRect& visibleRect, IntR
         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.