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

Unified Diff: LayoutTests/svg/repaint/shape-with-nested-outline.html

Issue 609463002: Don't include nested outlines when computing repaint rects for SVG objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/TestExpectations ('k') | LayoutTests/svg/repaint/shape-with-nested-outline-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/repaint/shape-with-nested-outline.html
diff --git a/LayoutTests/svg/repaint/shape-with-nested-outline.html b/LayoutTests/svg/repaint/shape-with-nested-outline.html
new file mode 100644
index 0000000000000000000000000000000000000000..77e9ff44cab2bc4309db62ba65c6511fea678bc6
--- /dev/null
+++ b/LayoutTests/svg/repaint/shape-with-nested-outline.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="../../resources/run-after-display.js"></script>
+<script>
+window.testIsAsync = true;
+window.onload = runRepaintTest;
+
+function repaintTest() {
+ runAfterDisplay(function() {
+ document.querySelector('#r').setAttribute('fill', 'green');
+ if (window.testRunner)
+ finishRepaintTest();
+ });
+};
+</script>
+<style>
+g {
+ outline: 50px solid lightblue;
+}
+rect#r {
+ outline: 50px solid blue;
+}
+</style>
+<svg width="500" height="500">
+ <g transform="translate(50 50)">
+ <rect width="400" height="100"/>
+ <rect y="300" width="400" height="100"/>
+ <rect id="r" x="100" y="100" width="200" height="200" fill="blue"/>
+ </g>
+</svg>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/repaint/shape-with-nested-outline-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698