Index: Source/core/paint/DeprecatedPaintLayerClipper.cpp |
diff --git a/Source/core/paint/DeprecatedPaintLayerClipper.cpp b/Source/core/paint/DeprecatedPaintLayerClipper.cpp |
index 70c690e9ef39b16c987c4ad1c4e4bf19a2d1a9c3..3b2be6a93e110d5f8d69da2d76b899776b772312 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; |