Commit 11b7087b authored by nbarth@chromium.org's avatar nbarth@chromium.org

Cleanup [RuntimeEnabled] use in CanvasRenderingContext2D

This removes some cruft added in:
Add versions of stroke, fill, and clip that take a Path parameter.
https://codereview.chromium.org/137353004/
...which was done b/c [RuntimeEnabled] didn't work properly on
overloaded methods.

This has been fixed (thanks Jens!) and thus the cruft can be removed.

R=haraken
BUG=339000

Review URL: https://codereview.chromium.org/334803002

git-svn-id: svn://svn.chromium.org/blink/trunk@176086 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d16ec600
...@@ -88,29 +88,19 @@ enum CanvasFillRule { "nonzero", "evenodd" }; ...@@ -88,29 +88,19 @@ enum CanvasFillRule { "nonzero", "evenodd" };
// path API (see also CanvasPathMethods) // path API (see also CanvasPathMethods)
void beginPath(); void beginPath();
// FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000 gets fixed. void fill(optional CanvasFillRule winding);
void fill(); [RuntimeEnabled=Path2D] void fill(Path2D path, optional CanvasFillRule winding);
void fill(CanvasFillRule winding);
[RuntimeEnabled=Path2D] void fill(Path2D path);
[RuntimeEnabled=Path2D] void fill(Path2D path, CanvasFillRule winding);
void stroke(); void stroke();
[RuntimeEnabled=Path2D] void stroke(Path2D path); [RuntimeEnabled=Path2D] void stroke(Path2D path);
// Focus rings // Focus rings
void drawFocusIfNeeded(Element element); void drawFocusIfNeeded(Element element);
[RuntimeEnabled=Path2D] void drawFocusIfNeeded(Path2D path, Element element); [RuntimeEnabled=Path2D] void drawFocusIfNeeded(Path2D path, Element element);
[RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(optional Path2D path);
[RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(Path2D path); void clip(optional CanvasFillRule winding);
// FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000 gets fixed. [RuntimeEnabled=Path2D] void clip(Path2D path, optional CanvasFillRule winding);
void clip(); boolean isPointInPath(unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
void clip(CanvasFillRule winding); [RuntimeEnabled=Path2D] boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y, optional CanvasFillRule winding);
[RuntimeEnabled=Path2D] void clip(Path2D path);
[RuntimeEnabled=Path2D] void clip(Path2D path, CanvasFillRule winding);
// FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000 gets fixed.
boolean isPointInPath(unrestricted float x, unrestricted float y);
boolean isPointInPath(unrestricted float x, unrestricted float y, CanvasFillRule winding);
[RuntimeEnabled=Path2D] boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y);
[RuntimeEnabled=Path2D] boolean isPointInPath(Path2D path, unrestricted float x, unrestricted float y, CanvasFillRule winding);
boolean isPointInStroke(unrestricted float x, unrestricted float y); boolean isPointInStroke(unrestricted float x, unrestricted float y);
[RuntimeEnabled=Path2D] boolean isPointInStroke(Path2D path, unrestricted float x, unrestricted float y); [RuntimeEnabled=Path2D] boolean isPointInStroke(Path2D path, unrestricted float x, unrestricted float y);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment