| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class CanvasGradient; | 51 class CanvasGradient; |
| 52 class CanvasPattern; | 52 class CanvasPattern; |
| 53 class CanvasStyle; | 53 class CanvasStyle; |
| 54 class Path2D; | 54 class Path2D; |
| 55 class Element; | 55 class Element; |
| 56 class ExceptionState; | 56 class ExceptionState; |
| 57 class FloatRect; | 57 class FloatRect; |
| 58 class GraphicsContext; | 58 class GraphicsContext; |
| 59 class HTMLCanvasElement; | 59 class HTMLCanvasElement; |
| 60 class HTMLImageElement; | 60 class HTMLImageElement; |
| 61 class HTMLVideoElement; | |
| 62 class ImageBitmap; | 61 class ImageBitmap; |
| 63 class ImageData; | 62 class ImageData; |
| 64 class TextMetrics; | 63 class TextMetrics; |
| 65 | 64 |
| 66 typedef HashMap<String, RefPtr<MutableStylePropertySet> > MutableStylePropertyMa
p; | 65 typedef HashMap<String, RefPtr<MutableStylePropertySet> > MutableStylePropertyMa
p; |
| 67 | 66 |
| 68 class CanvasRenderingContext2D final: public CanvasRenderingContext, public Scri
ptWrappable, public CanvasPathMethods { | 67 class CanvasRenderingContext2D final: public CanvasRenderingContext, public Scri
ptWrappable, public CanvasPathMethods { |
| 69 DEFINE_WRAPPERTYPEINFO(); | 68 DEFINE_WRAPPERTYPEINFO(); |
| 70 public: | 69 public: |
| 71 static PassOwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas
, const Canvas2DContextAttributes* attrs) | 70 static PassOwnPtr<CanvasRenderingContext2D> create(HTMLCanvasElement* canvas
, const Canvas2DContextAttributes* attrs) |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 310 |
| 312 GraphicsContext* drawingContext() const; | 311 GraphicsContext* drawingContext() const; |
| 313 | 312 |
| 314 void unwindStateStack(); | 313 void unwindStateStack(); |
| 315 void realizeSaves(GraphicsContext*); | 314 void realizeSaves(GraphicsContext*); |
| 316 | 315 |
| 317 void applyStrokePattern(); | 316 void applyStrokePattern(); |
| 318 void applyFillPattern(); | 317 void applyFillPattern(); |
| 319 | 318 |
| 320 void drawImageInternal(CanvasImageSource*, float sx, float sy, float sw, flo
at sh, float dx, float dy, float dw, float dh, ExceptionState&, CompositeOperato
r, blink::WebBlendMode, GraphicsContext* = 0); | 319 void drawImageInternal(CanvasImageSource*, float sx, float sy, float sw, flo
at sh, float dx, float dy, float dw, float dh, ExceptionState&, CompositeOperato
r, blink::WebBlendMode, GraphicsContext* = 0); |
| 321 void drawVideo(HTMLVideoElement*, FloatRect srcRect, FloatRect dstRect); | |
| 322 | 320 |
| 323 void fillInternal(const Path&, const String& windingRuleString); | 321 void fillInternal(const Path&, const String& windingRuleString); |
| 324 void strokeInternal(const Path&); | 322 void strokeInternal(const Path&); |
| 325 void clipInternal(const Path&, const String& windingRuleString); | 323 void clipInternal(const Path&, const String& windingRuleString); |
| 326 | 324 |
| 327 bool isPointInPathInternal(const Path&, const float x, const float y, const
String& windingRuleString); | 325 bool isPointInPathInternal(const Path&, const float x, const float y, const
String& windingRuleString); |
| 328 bool isPointInStrokeInternal(const Path&, const float x, const float y); | 326 bool isPointInStrokeInternal(const Path&, const float x, const float y); |
| 329 | 327 |
| 330 void scrollPathIntoViewInternal(const Path&); | 328 void scrollPathIntoViewInternal(const Path&); |
| 331 | 329 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; | 371 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; |
| 374 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; | 372 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; |
| 375 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; | 373 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; |
| 376 }; | 374 }; |
| 377 | 375 |
| 378 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 376 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 379 | 377 |
| 380 } // namespace blink | 378 } // namespace blink |
| 381 | 379 |
| 382 #endif // CanvasRenderingContext2D_h | 380 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |