Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.h

Issue 1761003003: Use a union typdef for the return type of canvas.getContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix oilpan -ahem- non-oilpan build Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index 5d7d9d9df4df066a7df0a6f8dae6402e4e654a90..131352f9468712d21420fcedd1f224d7a726ada5 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -63,6 +63,9 @@ class ImageBufferSurface;
class ImageData;
class IntSize;
+class CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextOrImageBitmapRenderingContext;
+typedef CanvasRenderingContext2DOrWebGLRenderingContextOrWebGL2RenderingContextOrImageBitmapRenderingContext RenderingContext;
+
class CORE_EXPORT HTMLCanvasElement final : public HTMLElement, public DocumentVisibilityObserver, public CanvasImageSource, public ImageBufferClient, public ImageBitmapSource {
DEFINE_WRAPPERTYPEINFO();
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLCanvasElement);
@@ -90,8 +93,6 @@ public:
reset();
}
- // Called by HTMLCanvasElement's V8 bindings.
- ScriptValue getContext(ScriptState*, const String&, const CanvasContextCreationAttributes&);
// Called by Document::getCSSCanvasContext as well as above getContext().
CanvasRenderingContext* getCanvasRenderingContext(const String&, const CanvasContextCreationAttributes&);

Powered by Google App Engine
This is Rietveld 408576698