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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html

Issue 2397003002: Mark children of an SVG root as needing paint invalidation checking on resize. (Closed)
Patch Set: none Created 4 years, 2 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: third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html
new file mode 100644
index 0000000000000000000000000000000000000000..1708ee5d9d063498bf5d6116ccd2f9b8ffdc7eb4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-svg-invalidate-children.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script src="../resources/text-based-repaint.js"></script>
+<script>
+// When resizing the div that contains SVG, the SVG root element and rect resize accordingly.
+// It's necessary to invalidate the rect in this case.
+window.expectedObjectInvalidations.push("LayoutSVGRect rect");
+
+onload = runRepaintTest;
+window.outputRepaintRects = false;
+function repaintTest() {
+ target.style.width = '200px';
+ target.style.height= '200px';
+};
+</script>
+<div id="target" style="width: 100px; height: 100px">
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 200" xml:space="preserve">
fs 2016/10/06 10:51:49 Nit: xmlns:xlink, version and xml:space don't add
chrishtr 2016/10/06 16:52:04 Done.
+ <rect x="50" y="50" width="100" height="100"/>
+ </svg>
+</div>

Powered by Google App Engine
This is Rietveld 408576698