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

Unified Diff: third_party/WebKit/Source/core/html/HTMLFormElement.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/HTMLFormElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
index a724456d02787f7d508965172f20a20ac2de7bc2..d7e56235c8b6d5217e8899ce57c0015cf35dc2df 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormElement.cpp
@@ -185,8 +185,9 @@ void HTMLFormElement::removedFrom(ContainerNode* insertionPoint) {
void HTMLFormElement::handleLocalEvents(Event& event) {
Node* targetNode = event.target()->toNode();
if (event.eventPhase() != Event::kCapturingPhase && targetNode &&
- targetNode != this && (event.type() == EventTypeNames::submit ||
- event.type() == EventTypeNames::reset)) {
+ targetNode != this &&
+ (event.type() == EventTypeNames::submit ||
+ event.type() == EventTypeNames::reset)) {
event.stopPropagation();
return;
}
@@ -301,8 +302,9 @@ void HTMLFormElement::prepareForSubmission(
String tagName = toHTMLFormControlElement(element)->tagName();
document().addConsoleMessage(ConsoleMessage::create(
SecurityMessageSource, ErrorMessageLevel,
- "Form submission failed, as the <" + tagName + "> element named "
- "'" +
+ "Form submission failed, as the <" + tagName +
+ "> element named "
+ "'" +
element->name() +
"' was implicitly closed by reaching "
"the end of the file. Please add an explicit end tag "
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLHRElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698