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

Unified Diff: third_party/WebKit/Source/core/html/forms/InputType.cpp

Issue 2035263002: Extract SourceLocation for ConsoleMessages on call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2037593004
Patch Set: Created 4 years, 6 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/forms/InputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/InputType.cpp b/third_party/WebKit/Source/core/html/forms/InputType.cpp
index 5e88d20f06163d16beb9455f7b7881d317176e4a..7f7779b13f289f56573e3bb32ae470bef9cf4949 100644
--- a/third_party/WebKit/Source/core/html/forms/InputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/InputType.cpp
@@ -29,6 +29,7 @@
#include "bindings/core/v8/ExceptionMessages.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/SourceLocation.h"
#include "core/InputTypeNames.h"
#include "core/dom/AXObjectCache.h"
#include "core/dom/ExceptionCode.h"
@@ -940,7 +941,8 @@ StepRange InputType::createStepRange(AnyStepHandling anyStepHandling, const Deci
void InputType::addWarningToConsole(const char* messageFormat, const String& value) const
{
element().document().addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, WarningMessageLevel,
- String::format(messageFormat, JSONValue::quoteString(value).utf8().data())));
+ String::format(messageFormat, JSONValue::quoteString(value).utf8().data()),
+ SourceLocation::capture(&element().document())));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698