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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp

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: *Pass*RefPtrWillBeRawPtr Created 4 years, 9 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/modules/webgl/WebGLRenderingContext.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp
index b657410a4ce227d90b4000013c40bdb0a9479463..a2c13984949a38d3f8bc85050148cd38c8c4f8dc 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContext.cpp
@@ -25,6 +25,7 @@
#include "modules/webgl/WebGLRenderingContext.h"
+#include "bindings/modules/v8/UnionTypesModules.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
#include "core/layout/LayoutBox.h"
@@ -104,6 +105,11 @@ WebGLRenderingContext::~WebGLRenderingContext()
{
}
+void WebGLRenderingContext::setCanvasGetContextResult(RenderingContext& result)
+{
+ result.setWebGLRenderingContext(RefPtrWillBeRawPtr<WebGLRenderingContext>(this));
sof 2016/03/09 22:05:26 PassRefPtr<>
+}
+
void WebGLRenderingContext::registerContextExtensions()
{
// Register extensions.

Powered by Google App Engine
This is Rietveld 408576698