Index: Source/core/html/HTMLShadowElement.cpp |
diff --git a/Source/core/html/HTMLShadowElement.cpp b/Source/core/html/HTMLShadowElement.cpp |
index 41d373efdf07525c402d5804b7ba1d5d56420c2a..eb169b0f1addbc70a04bae98f4bd309919604145 100644 |
--- a/Source/core/html/HTMLShadowElement.cpp |
+++ b/Source/core/html/HTMLShadowElement.cpp |
@@ -34,6 +34,7 @@ |
#include "core/HTMLNames.h" |
#include "core/dom/Document.h" |
#include "core/dom/shadow/ShadowRoot.h" |
+#include "core/inspector/ConsoleMessage.h" |
namespace WebCore { |
@@ -74,7 +75,7 @@ Node::InsertionNotificationRequest HTMLShadowElement::insertedInto(ContainerNode |
ShadowRoot* root = containingShadowRoot(); |
if (root && root->olderShadowRoot() && root->type() != root->olderShadowRoot()->type()) { |
String message = String::format("<shadow> doesn't work for %s element host.", root->host()->tagName().utf8().data()); |
- document().addConsoleMessage(RenderingMessageSource, WarningMessageLevel, message); |
+ document().addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, WarningMessageLevel, message)); |
} |
} |
return InsertionPoint::insertedInto(insertionPoint); |