Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2176)

Unified Diff: Source/core/rendering/PaintInfo.h

Issue 200053005: [SVG] Transform animation leaves traces of text behind. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/text/non-invertible-matrix-text-expected.svg ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/PaintInfo.h
diff --git a/Source/core/rendering/PaintInfo.h b/Source/core/rendering/PaintInfo.h
index c6940e37cde32f78377b83b9ab8ad7c9f2e7764a..50b6463a1a4112ce00b50ecd6bfe497659de5ce1 100644
--- a/Source/core/rendering/PaintInfo.h
+++ b/Source/core/rendering/PaintInfo.h
@@ -95,7 +95,10 @@ struct PaintInfo {
if (rect == infiniteRect())
return;
- rect = localToAncestorTransform.inverse().mapRect(rect);
+ if (localToAncestorTransform.isInvertible())
+ rect = localToAncestorTransform.inverse().mapRect(rect);
+ else
+ rect.setSize(IntSize(0, 0));
}
static IntRect infiniteRect() { return IntRect(LayoutRect::infiniteRect()); }
« no previous file with comments | « LayoutTests/svg/text/non-invertible-matrix-text-expected.svg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698