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

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.idl

Issue 137353004: Add versions of stroke, fill, and clip that take a Path parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add tests for null Path object passed in. Created 6 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void closePath(); 73 void closePath();
74 void moveTo(float x, float y); 74 void moveTo(float x, float y);
75 void lineTo(float x, float y); 75 void lineTo(float x, float y);
76 void quadraticCurveTo(float cpx, float cpy, float x, float y); 76 void quadraticCurveTo(float cpx, float cpy, float x, float y);
77 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y); 77 void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y);
78 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius); 78 [RaisesException] void arcTo(float x1, float y1, float x2, float y2, float r adius);
79 void rect(float x, float y, float width, float height); 79 void rect(float x, float y, float width, float height);
80 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise); 80 [RaisesException] void arc(float x, float y, float radius, float startAngle, float endAngle, [Default=Undefined] optional boolean anticlockwise);
81 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona l boolean anticlockwise); 81 [RaisesException] void ellipse(float x, float y, float radiusX, float radius Y, float rotation, float startAngle, float endAngle, [Default=Undefined] optiona l boolean anticlockwise);
82 82
83 // Not flagged as RuntimeEnabled=ExperimentalCanvasFeatures, see crbug.com/3 39000.
84 void fill(Path path, optional CanvasWindingRule winding);
Inactive 2014/02/19 16:06:24 Until the generator is fixed, you could mark the m
83 void fill(optional CanvasWindingRule winding); 85 void fill(optional CanvasWindingRule winding);
84 void stroke(); 86 void stroke();
87 [RuntimeEnabled=ExperimentalCanvasFeatures] void stroke(Path path);
88 // Not flagged as RuntimeEnabled=ExperimentalCanvasFeatures, see crbug.com/3 39000.
89 void clip(Path path, optional CanvasWindingRule winding);
85 void clip(optional CanvasWindingRule winding); 90 void clip(optional CanvasWindingRule winding);
86 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding); 91 boolean isPointInPath(float x, float y, optional CanvasWindingRule winding);
87 boolean isPointInStroke(float x, float y); 92 boolean isPointInStroke(float x, float y);
88 93
89 // text 94 // text
90 attribute DOMString font; 95 attribute DOMString font;
91 attribute DOMString textAlign; 96 attribute DOMString textAlign;
92 attribute DOMString textBaseline; 97 attribute DOMString textBaseline;
93 98
94 TextMetrics measureText(DOMString text); 99 TextMetrics measureText(DOMString text);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element); 172 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem ent element);
168 173
169 readonly attribute float webkitBackingStorePixelRatio; 174 readonly attribute float webkitBackingStorePixelRatio;
170 175
171 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled; 176 [ImplementedAs=imageSmoothingEnabled] attribute boolean webkitImageSmoothing Enabled;
172 attribute boolean imageSmoothingEnabled; 177 attribute boolean imageSmoothingEnabled;
173 178
174 Canvas2DContextAttributes getContextAttributes(); 179 Canvas2DContextAttributes getContextAttributes();
175 }; 180 };
176 181
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698