summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/PaintInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/rendering/PaintInfo.h')
-rw-r--r--WebCore/rendering/PaintInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/rendering/PaintInfo.h b/WebCore/rendering/PaintInfo.h
index 213eb30..3598807 100644
--- a/WebCore/rendering/PaintInfo.h
+++ b/WebCore/rendering/PaintInfo.h
@@ -86,10 +86,16 @@ struct PaintInfo {
return;
context->concatCTM(localToAncestorTransform);
+
+ if (rect == infiniteRect())
+ return;
+
rect = localToAncestorTransform.inverse().mapRect(rect);
}
#endif
+ static IntRect infiniteRect() { return IntRect(INT_MIN / 2, INT_MIN / 2, INT_MAX, INT_MAX); }
+
// FIXME: Introduce setters/getters at some point. Requires a lot of changes throughout rendering/.
GraphicsContext* context;
IntRect rect;