| Index: Source/core/html/HTMLCanvasElement.h
|
| diff --git a/Source/core/html/HTMLCanvasElement.h b/Source/core/html/HTMLCanvasElement.h
|
| index 60a1a606b259de724848dd38c51d0fb124517c08..d5ab1443700d15a0bb93f4647837ec876b77bd84 100644
|
| --- a/Source/core/html/HTMLCanvasElement.h
|
| +++ b/Source/core/html/HTMLCanvasElement.h
|
| @@ -28,6 +28,8 @@
|
| #ifndef HTMLCanvasElement_h
|
| #define HTMLCanvasElement_h
|
|
|
| +#include "bindings/core/v8/ScriptValue.h"
|
| +#include "bindings/core/v8/UnionTypesCore.h"
|
| #include "core/dom/Document.h"
|
| #include "core/html/HTMLElement.h"
|
| #include "core/html/canvas/CanvasImageSource.h"
|
| @@ -44,7 +46,7 @@
|
| namespace blink {
|
|
|
| class AffineTransform;
|
| -class CanvasContextAttributes;
|
| +class CanvasContextCreationAttributes;
|
| class CanvasRenderingContext;
|
| class GraphicsContext;
|
| class GraphicsContextStateSaver;
|
| @@ -100,7 +102,10 @@ public:
|
| reset();
|
| }
|
|
|
| - CanvasRenderingContext* getContext(const String&, CanvasContextAttributes* attributes = 0);
|
| + // Called by HTMLCanvasElement's V8 bindings.
|
| + ScriptValue getContext(ScriptState*, const String&, const CanvasContextCreationAttributes&);
|
| + // Called by Document::getCSSCanvasContext as well as above getContext() variant.
|
| + void getContext(const String&, const CanvasContextCreationAttributes&, CanvasRenderingContext2DOrWebGLRenderingContext&);
|
| bool isPaintable() const;
|
|
|
| static String toEncodingMimeType(const String& mimeType);
|
|
|