Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp |
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
index 263027e76fd267a076d2db50fecf3470f27539d5..800b4999e7b935090938bdf77911c3c021079b41 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp |
@@ -69,6 +69,7 @@ |
#include "core/html/canvas/WebGLShaderPrecisionFormat.h" |
#include "core/html/canvas/WebGLTexture.h" |
#include "core/html/canvas/WebGLUniformLocation.h" |
+#include "core/inspector/ConsoleMessage.h" |
#include "core/inspector/InspectorInstrumentation.h" |
#include "core/loader/FrameLoader.h" |
#include "core/loader/FrameLoaderClient.h" |
@@ -5062,7 +5063,7 @@ void WebGLRenderingContextBase::printWarningToConsole(const String& message) |
{ |
if (!canvas()) |
return; |
- canvas()->document().addConsoleMessage(RenderingMessageSource, WarningMessageLevel, message); |
+ canvas()->document().addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, WarningMessageLevel, message)); |
} |
bool WebGLRenderingContextBase::validateFramebufferFuncParameters(const char* functionName, GLenum target, GLenum attachment) |