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

Unified Diff: LayoutTests/svg/custom/viewport-resource-inval.svg

Issue 458833002: [SVG] Skip layout viewport change calculation when not needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test + minor cleanup. Created 6 years, 4 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 | « no previous file | LayoutTests/svg/custom/viewport-resource-inval-expected.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/viewport-resource-inval.svg
diff --git a/LayoutTests/svg/custom/viewport-resource-inval.svg b/LayoutTests/svg/custom/viewport-resource-inval.svg
new file mode 100644
index 0000000000000000000000000000000000000000..1ba7386d882a16ab6dacb3377231f3e70f102033
--- /dev/null
+++ b/LayoutTests/svg/custom/viewport-resource-inval.svg
@@ -0,0 +1,41 @@
+<svg id="svg" width="200" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <defs>
+ <mask id="mask">
+ <rect width="25%" height="25%" fill="white"/>
+ </mask>
+
+ <clipPath id="clip">
+ <rect x="27%" width="25%" height="25%"/>
+ </clipPath>
+
+ <pattern id="pattern" patternUnits="userSpaceOnUse" x="0" y="0" width="800" height="800">
+ <rect x="54%" width="25%" height="25%" fill="green"/>
+ </pattern>
+ </defs>
+
+ <rect width="25%" height="25%" fill="red"/>
+ <rect width="800" height="800" fill="green" mask="url(#mask)"/>
+
+ <rect x="27%" width="25%" height="25%" fill="red"/>
+ <rect width="800" height="800" fill="green" clip-path="url(#clip)"/>
+
+ <rect x="54%" width="25%" height="25%" fill="red"/>
+ <rect width="800" height="800" fill="url(#pattern)"/>
+
+ <script>
+ var delay=250;
+ if (window.testRunner) {
+ delay=0;
+ testRunner.waitUntilDone();
+ }
+
+ setTimeout(function() {
+ document.getElementById('svg').setAttribute('width', '400');
+ document.getElementById('svg').setAttribute('height', '400');
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }, delay);
+ </script>
+</svg>
+
« no previous file with comments | « no previous file | LayoutTests/svg/custom/viewport-resource-inval-expected.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698