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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextFactory.h

Issue 1387743002: Fixed expando-loss.html test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache ScriptState and use it to wrap m_defaultVertexArrayObject. Created 5 years, 2 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/canvas/CanvasRenderingContextFactory.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextFactory.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextFactory.h
index ac9853c0727dddcfd1054fb1faaa26db43eac7c6..289ced5c3ef1722c42fbb6509a184e0b5598173e 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextFactory.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContextFactory.h
@@ -15,6 +15,7 @@
namespace blink {
class HTMLCanvasElement;
+class ScriptState;
class CORE_EXPORT CanvasRenderingContextFactory {
WTF_MAKE_FAST_ALLOCATED(CanvasRenderingContextFactory);
@@ -23,7 +24,7 @@ public:
CanvasRenderingContextFactory() = default;
virtual ~CanvasRenderingContextFactory() { }
- virtual PassOwnPtrWillBeRawPtr<CanvasRenderingContext> create(HTMLCanvasElement*, const CanvasContextCreationAttributes&, Document&) = 0;
+ virtual PassOwnPtrWillBeRawPtr<CanvasRenderingContext> create(HTMLCanvasElement*, ScriptState*, const CanvasContextCreationAttributes&, Document&) = 0;
virtual CanvasRenderingContext::ContextType contextType() const = 0;
virtual void onError(HTMLCanvasElement*, const String& error) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698