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

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

Issue 2586143004: Blur immediately if an attribute change made an element unfocasable. (Closed)
Patch Set: Update comments and a function name Created 4 years 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/HTMLInputElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
index 4c405b31ea763680c56d5b05d317711491e734a3..ab45728b3c0909b2b952e5b71b5173ac66b93ccf 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.cpp
@@ -485,16 +485,19 @@ void HTMLInputElement::updateType() {
DCHECK(elementData());
AttributeCollection attributes = attributesWithoutUpdate();
if (const Attribute* height = attributes.find(heightAttr)) {
- TextControlElement::attributeChanged(heightAttr, height->value(),
- height->value());
+ TextControlElement::attributeChanged(
+ heightAttr, height->value(), height->value(),
+ AttributeModificationReason::kDirectly);
}
if (const Attribute* width = attributes.find(widthAttr)) {
- TextControlElement::attributeChanged(widthAttr, width->value(),
- width->value());
+ TextControlElement::attributeChanged(
+ widthAttr, width->value(), width->value(),
+ AttributeModificationReason::kDirectly);
}
if (const Attribute* align = attributes.find(alignAttr)) {
- TextControlElement::attributeChanged(alignAttr, align->value(),
- align->value());
+ TextControlElement::attributeChanged(
+ alignAttr, align->value(), align->value(),
+ AttributeModificationReason::kDirectly);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFormControlElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSlotElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698