Index: Source/core/paint/DeprecatedPaintLayerClipper.cpp |
diff --git a/Source/core/paint/DeprecatedPaintLayerClipper.cpp b/Source/core/paint/DeprecatedPaintLayerClipper.cpp |
index 1d0ea54eb3f87d220fef170844a9e2487d983156..8a727fc1271c3055c04978f64bb8c62ad008698e 100644 |
--- a/Source/core/paint/DeprecatedPaintLayerClipper.cpp |
+++ b/Source/core/paint/DeprecatedPaintLayerClipper.cpp |
@@ -95,7 +95,8 @@ LayoutRect DeprecatedPaintLayerClipper::localClipRect() const |
calculateRects(context, LayoutRect(LayoutRect::infiniteIntRect()), layerBounds, backgroundRect, foregroundRect, outlineRect); |
LayoutRect clipRect = backgroundRect.rect(); |
- if (IntRect(clipRect) == LayoutRect::infiniteIntRect()) |
+ // TODO(chrishtr): avoid converting to IntRect and back. |
+ if (clipRect == LayoutRect(LayoutRect::infiniteIntRect())) |
return clipRect; |
LayoutPoint clippingRootOffset; |