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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. | 83 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. |
84 boolean isPointInPath(float x, float y); | 84 boolean isPointInPath(float x, float y); |
85 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InPath(Path2D? path, float x, float y); | 85 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InPath(Path2D? path, float x, float y); |
86 boolean isPointInPath(float x, float y, CanvasWindingRule winding); | 86 boolean isPointInPath(float x, float y, CanvasWindingRule winding); |
87 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InPath(Path2D? path, float x, float y, CanvasWindingRule winding); | 87 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InPath(Path2D? path, float x, float y, CanvasWindingRule winding); |
88 | 88 |
89 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. | 89 // FIXME: Simplify these using optional CanvasWindingRule once crbug.com/339
000 gets fixed. |
90 boolean isPointInStroke(float x, float y); | 90 boolean isPointInStroke(float x, float y); |
91 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InStroke(Path2D? path, float x, float y); | 91 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] boolean isPoint
InStroke(Path2D? path, float x, float y); |
92 | 92 |
| 93 [RuntimeEnabled=ExperimentalCanvasFeatures] void scrollPathIntoView(); |
| 94 [RuntimeEnabled=ExperimentalCanvasFeatures, RaisesException] void scrollPath
IntoView(Path2D? path); |
| 95 |
93 // text | 96 // text |
94 attribute DOMString font; | 97 attribute DOMString font; |
95 attribute DOMString textAlign; | 98 attribute DOMString textAlign; |
96 attribute DOMString textBaseline; | 99 attribute DOMString textBaseline; |
97 | 100 |
98 TextMetrics measureText(DOMString text); | 101 TextMetrics measureText(DOMString text); |
99 | 102 |
100 // other | 103 // other |
101 | 104 |
102 void setAlpha(float alpha); | 105 void setAlpha(float alpha); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); | 169 [RuntimeEnabled=ExperimentalCanvasFeatures] void drawFocusIfNeeded(Element e
lement); |
167 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); | 170 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean drawCustomFocusRing(Elem
ent element); |
168 | 171 |
169 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; | 172 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; |
170 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; | 173 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
171 | 174 |
172 Canvas2DContextAttributes getContextAttributes(); | 175 Canvas2DContextAttributes getContextAttributes(); |
173 }; | 176 }; |
174 | 177 |
175 CanvasRenderingContext2D implements CanvasPathMethods; | 178 CanvasRenderingContext2D implements CanvasPathMethods; |
OLD | NEW |