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

Unified Diff: LayoutTests/svg/as-image/zero-size-buffered-image-nopaint.html

Issue 109753004: Avoid drawing SVG image content when the image is of zero size. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 12 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
Index: LayoutTests/svg/as-image/zero-size-buffered-image-nopaint.html
diff --git a/LayoutTests/svg/as-image/zero-size-buffered-image-nopaint.html b/LayoutTests/svg/as-image/zero-size-buffered-image-nopaint.html
new file mode 100644
index 0000000000000000000000000000000000000000..e05d60bc57eb35f5b241cb63263536d7325e751b
--- /dev/null
+++ b/LayoutTests/svg/as-image/zero-size-buffered-image-nopaint.html
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
+ <!-- This content should not assert or crash in Debug or Asan builds. -->
+ <!-- It renders to an empty image due to the zero width. -->
+ <image transform="skewX(30)" x="0" y="240" width="0" height="100" buffered-rendering="static" xlink:href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><rect x='10%' y='10%' width='80%' height='80%' fill='red' /></svg>"/>
+ </image>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698