Index: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp |
diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp |
index 1a00c5b7d8fd715632282ad437351edcc7c04d80..df103939b734876ec2e0a55e7ed0fdbbd6e213da 100644 |
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp |
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp |
@@ -45,7 +45,7 @@ OffscreenCanvasRenderingContext2D* OffscreenCanvas::getContext(const String& id, |
return nullptr; |
if (m_context) { |
- if (m_context->contextType() != contextType) { |
+ if (m_context->getContextType() != contextType) { |
factory->onError(this, "OffscreenCanvas has an existing context of a different type"); |
return nullptr; |
} |
@@ -81,7 +81,7 @@ OffscreenCanvasRenderingContextFactory* OffscreenCanvas::getRenderingContextFact |
void OffscreenCanvas::registerRenderingContextFactory(PassOwnPtr<OffscreenCanvasRenderingContextFactory> renderingContextFactory) |
{ |
- OffscreenCanvasRenderingContext::ContextType type = renderingContextFactory->contextType(); |
+ OffscreenCanvasRenderingContext::ContextType type = renderingContextFactory->getContextType(); |
ASSERT(type < OffscreenCanvasRenderingContext::ContextTypeCount); |
ASSERT(!renderingContextFactories()[type]); |
renderingContextFactories()[type] = renderingContextFactory; |