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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/custom/viewport-resource-inval-expected.svg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <svg id="svg" width="200" height="200" version="1.1" xmlns="http://www.w3.org/20 00/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <defs>
3 <mask id="mask">
4 <rect width="25%" height="25%" fill="white"/>
5 </mask>
6
7 <clipPath id="clip">
8 <rect x="27%" width="25%" height="25%"/>
9 </clipPath>
10
11 <pattern id="pattern" patternUnits="userSpaceOnUse" x="0" y="0" width="800" height="800">
12 <rect x="54%" width="25%" height="25%" fill="green"/>
13 </pattern>
14 </defs>
15
16 <rect width="25%" height="25%" fill="red"/>
17 <rect width="800" height="800" fill="green" mask="url(#mask)"/>
18
19 <rect x="27%" width="25%" height="25%" fill="red"/>
20 <rect width="800" height="800" fill="green" clip-path="url(#clip)"/>
21
22 <rect x="54%" width="25%" height="25%" fill="red"/>
23 <rect width="800" height="800" fill="url(#pattern)"/>
24
25 <script>
26 var delay=250;
27 if (window.testRunner) {
28 delay=0;
29 testRunner.waitUntilDone();
30 }
31
32 setTimeout(function() {
33 document.getElementById('svg').setAttribute('width', '400');
34 document.getElementById('svg').setAttribute('height', '400');
35
36 if (window.testRunner)
37 testRunner.notifyDone();
38 }, delay);
39 </script>
40 </svg>
41
OLDNEW
« 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