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

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

Issue 387413003: Drop findAttribute*ByName() API from Element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/dom/NamedNodeMap.cpp ('k') | Source/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.cpp
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
index 233384b9aad6835862fb4ed61aec4d26020f65d2..9078c6e92d0555b5ccb433fdd73498f4ec333548 100644
--- a/Source/core/html/HTMLInputElement.cpp
+++ b/Source/core/html/HTMLInputElement.cpp
@@ -453,11 +453,12 @@ void HTMLInputElement::updateType()
if (didRespectHeightAndWidth != m_inputType->shouldRespectHeightAndWidthAttributes()) {
ASSERT(elementData());
- if (const Attribute* height = findAttributeByName(heightAttr))
+ AttributeCollection attributes = this->attributes();
+ if (const Attribute* height = attributes.find(heightAttr))
attributeChanged(heightAttr, height->value());
- if (const Attribute* width = findAttributeByName(widthAttr))
+ if (const Attribute* width = attributes.find(widthAttr))
attributeChanged(widthAttr, width->value());
- if (const Attribute* align = findAttributeByName(alignAttr))
+ if (const Attribute* align = attributes.find(alignAttr))
attributeChanged(alignAttr, align->value());
}
« no previous file with comments | « Source/core/dom/NamedNodeMap.cpp ('k') | Source/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698