[chromium] Remove unused variable (gcc 4.6 complains about this)
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Nov 2011 19:05:08 +0000 (19:05 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Nov 2011 19:05:08 +0000 (19:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=73335

../../third_party/WebKit/Source/WebCore/platform/graphics/chromium/cc/CCDamageTracker.cpp:296:19:
error: variable 'oldReplicaMaskRect' set but not used [-Werror=unused-but-set-variable]

* platform/graphics/chromium/cc/CCDamageTracker.cpp:
(WebCore::CCDamageTracker::extendDamageForRenderSurface):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/cc/CCDamageTracker.cpp

index 73b1e839e8c116c3c0c218864e2c15fdb714110d..347a01d41b5286fa310e9db1e69c2f5e37efd851 100644 (file)
@@ -1,3 +1,14 @@
+2011-11-29  Tony Chang  <tony@chromium.org>
+
+        [chromium] Remove unused variable (gcc 4.6 complains about this)
+        https://bugs.webkit.org/show_bug.cgi?id=73335
+
+        ../../third_party/WebKit/Source/WebCore/platform/graphics/chromium/cc/CCDamageTracker.cpp:296:19:
+        error: variable 'oldReplicaMaskRect' set but not used [-Werror=unused-but-set-variable]
+
+        * platform/graphics/chromium/cc/CCDamageTracker.cpp:
+        (WebCore::CCDamageTracker::extendDamageForRenderSurface):
+
 2011-11-29  Oliver Hunt  <oliver@apple.com>
 
         DOM wrapper cache doesn't need to use JSDOMWrapper
index 519399c87b87ef5f5cdeccc6a0e805840b1119d2..17226aa82091019398aedc2bc300d79118f3fa6d 100644 (file)
@@ -293,7 +293,7 @@ void CCDamageTracker::extendDamageForRenderSurface(CCLayerImpl* layer, FloatRect
     if (layer->replicaLayer() && layer->replicaLayer()->maskLayer()) {
         CCLayerImpl* replicaMaskLayer = layer->replicaLayer()->maskLayer();
 
-        FloatRect oldReplicaMaskRect = removeRectFromCurrentFrame(replicaMaskLayer->id());
+        removeRectFromCurrentFrame(replicaMaskLayer->id());
 
         // Compute the replica's "originTransform" that maps from the replica's origin space to the target surface origin space.
         TransformationMatrix replicaOriginTransform = layer->renderSurface()->originTransform();