OLD | NEW |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000
gets fixed. | 91 // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000
gets fixed. |
92 void fill(); | 92 void fill(); |
93 void fill(CanvasFillRule winding); | 93 void fill(CanvasFillRule winding); |
94 [RuntimeEnabled=Path2D] void fill(Path2D path); | 94 [RuntimeEnabled=Path2D] void fill(Path2D path); |
95 [RuntimeEnabled=Path2D] void fill(Path2D path, CanvasFillRule winding); | 95 [RuntimeEnabled=Path2D] void fill(Path2D path, CanvasFillRule winding); |
96 void stroke(); | 96 void stroke(); |
97 [RuntimeEnabled=Path2D] void stroke(Path2D path); | 97 [RuntimeEnabled=Path2D] void stroke(Path2D path); |
98 // Focus rings | 98 // Focus rings |
99 void drawFocusIfNeeded(Element element); | 99 void drawFocusIfNeeded(Element element); |
100 [RuntimeEnabled=Path2D] void drawFocusIfNeeded(Path2D path, Element element)
; | 100 [RuntimeEnabled=Path2D] void drawFocusIfNeeded(Path2D path, Element element)
; |
101 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); | |
102 | 101 |
103 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); | 102 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); |
104 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(Path2D p
ath); | 103 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(Path2D p
ath); |
105 // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000
gets fixed. | 104 // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000
gets fixed. |
106 void clip(); | 105 void clip(); |
107 void clip(CanvasFillRule winding); | 106 void clip(CanvasFillRule winding); |
108 [RuntimeEnabled=Path2D] void clip(Path2D path); | 107 [RuntimeEnabled=Path2D] void clip(Path2D path); |
109 [RuntimeEnabled=Path2D] void clip(Path2D path, CanvasFillRule winding); | 108 [RuntimeEnabled=Path2D] void clip(Path2D path, CanvasFillRule winding); |
110 // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000
gets fixed. | 109 // FIXME: Simplify these using optional CanvasFillRule once crbug.com/339000
gets fixed. |
111 boolean isPointInPath(unrestricted float x, unrestricted float y); | 110 boolean isPointInPath(unrestricted float x, unrestricted float y); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect
( | 183 [MeasureAs=CanvasRenderingContext2DDrawImageFromRect] void drawImageFromRect
( |
185 HTMLImageElement? image, optional unrestricted float sx, optional unrest
ricted float sy, optional unrestricted float sw, optional unrestricted float sh, | 184 HTMLImageElement? image, optional unrestricted float sx, optional unrest
ricted float sy, optional unrestricted float sw, optional unrestricted float sh, |
186 optional unrestricted float dx, optional unrestricted float dy, optional
unrestricted float dw, optional unrestricted float dh, optional DOMString compo
siteOperation); | 185 optional unrestricted float dx, optional unrestricted float dy, optional
unrestricted float dw, optional unrestricted float dh, optional DOMString compo
siteOperation); |
187 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, optional DOMStrin
g color, optional unrestricted float alpha); | 186 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, optional DOMStrin
g color, optional unrestricted float alpha); |
188 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, unrestricted floa
t grayLevel, optional unrestricted float alpha); | 187 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, unrestricted floa
t grayLevel, optional unrestricted float alpha); |
189 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, unrestricted floa
t r, unrestricted float g, unrestricted float b, unrestricted float a); | 188 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, unrestricted floa
t r, unrestricted float g, unrestricted float b, unrestricted float a); |
190 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, unrestricted floa
t c, unrestricted float m, unrestricted float y, unrestricted float k, unrestric
ted float a); | 189 [MeasureAs=CanvasRenderingContext2DSetShadow] void setShadow(unrestricted fl
oat width, unrestricted float height, unrestricted float blur, unrestricted floa
t c, unrestricted float m, unrestricted float y, unrestricted float k, unrestric
ted float a); |
191 }; | 190 }; |
192 | 191 |
193 CanvasRenderingContext2D implements CanvasPathMethods; | 192 CanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |