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

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

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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/HTMLFormControlElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
index 3820bdbcc0fd58c850668c24e0a982c1c006df63..8afd2d71e86e906f4cc2cfb72cb5ef55641aff6f 100644
--- a/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp
@@ -216,7 +216,8 @@ static bool shouldAutofocusOnAttach(const HTMLFormControlElement* element) {
if (!element->isAutofocusable())
return false;
if (element->document().isSandboxed(SandboxAutomaticFeatures)) {
- // FIXME: This message should be moved off the console once a solution to https://bugs.webkit.org/show_bug.cgi?id=103274 exists.
+ // FIXME: This message should be moved off the console once a solution to
+ // https://bugs.webkit.org/show_bug.cgi?id=103274 exists.
element->document().addConsoleMessage(ConsoleMessage::create(
SecurityMessageSource, ErrorMessageLevel,
"Blocked autofocusing on a form control because the form's frame is "
@@ -234,8 +235,8 @@ void HTMLFormControlElement::attachLayoutTree(const AttachContext& context) {
return;
// The call to updateFromElement() needs to go after the call through
- // to the base class's attachLayoutTree() because that can sometimes do a close
- // on the layoutObject.
+ // to the base class's attachLayoutTree() because that can sometimes do a
+ // close on the layoutObject.
layoutObject()->updateFromElement();
// FIXME: Autofocus handling should be moved to insertedInto according to
@@ -382,7 +383,8 @@ void HTMLFormControlElement::dispatchFocusEvent(
InputDeviceCapabilities* sourceCapabilities) {
if (type != WebFocusTypePage)
m_wasFocusedByMouse = type == WebFocusTypeMouse;
- // ContainerNode::handleStyleChangeOnFocusStateChange() will inform LayoutTheme about the focus state change.
+ // ContainerNode::handleStyleChangeOnFocusStateChange() will inform
+ // LayoutTheme about the focus state change.
HTMLElement::dispatchFocusEvent(oldFocusedElement, type, sourceCapabilities);
}
@@ -395,8 +397,9 @@ void HTMLFormControlElement::willCallDefaultEventHandler(const Event& event) {
bool oldShouldHaveFocusAppearance = shouldHaveFocusAppearance();
m_wasFocusedByMouse = false;
- // Change of m_wasFocusByMouse may affect shouldHaveFocusAppearance() and LayoutTheme::isFocused().
- // Inform LayoutTheme if shouldHaveFocusAppearance() changes.
+ // Change of m_wasFocusByMouse may affect shouldHaveFocusAppearance() and
+ // LayoutTheme::isFocused(). Inform LayoutTheme if
+ // shouldHaveFocusAppearance() changes.
if (oldShouldHaveFocusAppearance != shouldHaveFocusAppearance() &&
layoutObject())
LayoutTheme::theme().controlStateChanged(*layoutObject(),
@@ -432,7 +435,8 @@ bool HTMLFormControlElement::willValidate() const {
}
void HTMLFormControlElement::setNeedsWillValidateCheck() {
- // We need to recalculate willValidate immediately because willValidate change can causes style change.
+ // We need to recalculate willValidate immediately because willValidate change
+ // can causes style change.
bool newWillValidate = recalcWillValidate();
if (m_willValidateInitialized && m_willValidate == newWillValidate)
return;

Powered by Google App Engine
This is Rietveld 408576698