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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-segment-modification.svg

Issue 1416273002: Remove SVGPathElement.pathSegList and related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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
OLDNEW
(Empty)
1 <?xml version="1.0"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink='http://www.w3.org/1999/xlin k' width="300px" height="300px" viewBox="0 0 300 300" onload="runRepaintAndPixel Test()">
3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" type ="text/javascript"></script>
4 <script type="text/javascript">
5 function repaintTest() {
6 var smile = document.getElementById('smile');
7 var segList = smile.pathSegList;
8 var moveSeg = segList.getItem(0); // This represents the M 80 40 segm ent (Move to)
9 moveSeg.x = 50;
10 moveSeg.y = 50;
11 }
12 </script>
13 <path id="smile" d="M 80 40 S 120 80 160 40" stroke="black" stroke-width="3" fill="none"/>
14 <g transform="translate(0 50)">
15 <path d="M 50 50 S 120 80 160 40" stroke="black" stroke-width="3" fill=" none"/>
16 </g>
17 <text x="10" y="20">Both shapes should look identical</text>
18 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698