From: commit-queue@webkit.org Date: Thu, 12 Apr 2012 13:22:26 +0000 (+0000) Subject: Calculate the cover rect of tiled backing store with the trajectory vector. X-Git-Tag: 070512121124~7194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76d2c3a5bad4a870269ff3c649b506eeb2a6159d;p=profile%2Fivi%2Fwebkit-efl.git 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 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 --- diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index a22ef1b..6bbe5d0 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,16 @@ +2012-04-12 JungJik Lee + + 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 Web Inspector: extracting NetworkRequest from Resource (step 2) diff --git a/Source/WebCore/platform/graphics/TiledBackingStore.cpp b/Source/WebCore/platform/graphics/TiledBackingStore.cpp index 58432ce..8484da9 100644 --- a/Source/WebCore/platform/graphics/TiledBackingStore.cpp +++ b/Source/WebCore/platform/graphics/TiledBackingStore.cpp @@ -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.