| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // text | 93 // text |
| 94 attribute DOMString font; | 94 attribute DOMString font; |
| 95 attribute DOMString textAlign; | 95 attribute DOMString textAlign; |
| 96 attribute DOMString textBaseline; | 96 attribute DOMString textBaseline; |
| 97 | 97 |
| 98 TextMetrics measureText(DOMString text); | 98 TextMetrics measureText(DOMString text); |
| 99 | 99 |
| 100 // Context state |
| 101 // Should be merged with WebGL counterpart in CanvasRenderingContext, once n
o-longer experimental |
| 102 [RuntimeEnabled=ExperimentalCanvasFeatures] boolean isContextLost(); |
| 103 |
| 100 // other | 104 // other |
| 101 | 105 |
| 102 void setAlpha(float alpha); | 106 void setAlpha(float alpha); |
| 103 void setCompositeOperation(DOMString compositeOperation); | 107 void setCompositeOperation(DOMString compositeOperation); |
| 104 | 108 |
| 105 void setLineWidth(float width); | 109 void setLineWidth(float width); |
| 106 void setLineCap(DOMString cap); | 110 void setLineCap(DOMString cap); |
| 107 void setLineJoin(DOMString join); | 111 void setLineJoin(DOMString join); |
| 108 void setMiterLimit(float limit); | 112 void setMiterLimit(float limit); |
| 109 | 113 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 177 |
| 174 readonly attribute float webkitBackingStorePixelRatio; | 178 readonly attribute float webkitBackingStorePixelRatio; |
| 175 | 179 |
| 176 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; | 180 [ImplementedAs=imageSmoothingEnabled, MeasureAs=PrefixedImageSmoothingEnable
d] attribute boolean webkitImageSmoothingEnabled; |
| 177 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; | 181 [MeasureAs=UnprefixedImageSmoothingEnabled] attribute boolean imageSmoothing
Enabled; |
| 178 | 182 |
| 179 Canvas2DContextAttributes getContextAttributes(); | 183 Canvas2DContextAttributes getContextAttributes(); |
| 180 }; | 184 }; |
| 181 | 185 |
| 182 CanvasRenderingContext2D implements CanvasPathMethods; | 186 CanvasRenderingContext2D implements CanvasPathMethods; |
| OLD | NEW |