OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. |
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 void setFillColor(const String& color); | 143 void setFillColor(const String& color); |
144 void setFillColor(float grayLevel); | 144 void setFillColor(float grayLevel); |
145 void setFillColor(const String& color, float alpha); | 145 void setFillColor(const String& color, float alpha); |
146 void setFillColor(float grayLevel, float alpha); | 146 void setFillColor(float grayLevel, float alpha); |
147 void setFillColor(float r, float g, float b, float a); | 147 void setFillColor(float r, float g, float b, float a); |
148 void setFillColor(float c, float m, float y, float k, float a); | 148 void setFillColor(float c, float m, float y, float k, float a); |
149 | 149 |
150 void beginPath(); | 150 void beginPath(); |
151 | 151 |
152 PassRefPtr<Path2D> currentPath(); | |
153 void setCurrentPath(Path2D*); | |
154 void fill(const String& winding = "nonzero"); | 152 void fill(const String& winding = "nonzero"); |
155 void fill(Path2D*, const String& winding = "nonzero"); | 153 void fill(Path2D*, const String& winding = "nonzero"); |
156 void stroke(); | 154 void stroke(); |
157 void stroke(Path2D*); | 155 void stroke(Path2D*); |
158 void clip(const String& winding = "nonzero"); | 156 void clip(const String& winding = "nonzero"); |
159 void clip(Path2D*, const String& winding = "nonzero"); | 157 void clip(Path2D*, const String& winding = "nonzero"); |
160 | 158 |
161 bool isPointInPath(const float x, const float y, const String& winding = "no
nzero"); | 159 bool isPointInPath(const float x, const float y, const String& winding = "no
nzero"); |
162 bool isPointInPath(Path2D*, const float x, const float y, const String& wind
ing = "nonzero"); | 160 bool isPointInPath(Path2D*, const float x, const float y, const String& wind
ing = "nonzero"); |
163 bool isPointInStroke(const float x, const float y); | 161 bool isPointInStroke(const float x, const float y); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 354 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
357 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 355 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
358 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 356 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
359 }; | 357 }; |
360 | 358 |
361 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 359 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
362 | 360 |
363 } // namespace WebCore | 361 } // namespace WebCore |
364 | 362 |
365 #endif | 363 #endif |
OLD | NEW |