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/core/dom/Document.cpp

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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 15359a4fb8625690534dc216358b3b89c4b013b6..f9346f2abd91766c55c725be631abae8acff50b6 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -4906,7 +4906,7 @@ ScriptValue Document::getCSSCanvasContext(ScriptState* scriptState, const String
{
HTMLCanvasElement& element = getCSSCanvasElement(name);
element.setSize(IntSize(width, height));
- CanvasRenderingContext* context = element.getCanvasRenderingContext(type, CanvasContextCreationAttributes());
+ CanvasRenderingContext* context = element.getCanvasRenderingContext(scriptState, type, CanvasContextCreationAttributes());
if (!context) {
return ScriptValue::createNull(scriptState);
}

Powered by Google App Engine
This is Rietveld 408576698