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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2486793002: Make getIntegralAttribute use parseHTMLInteger (Closed)
Patch Set: Fix test results Created 4 years, 1 month 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 | « third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-grouping-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 469bc7a952c742e9449d340a4b81df0a039a8166..2144390e627a4cb977ce75f86580e09f1bc675f7 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -3326,7 +3326,9 @@ KURL Element::getNonEmptyURLAttribute(const QualifiedName& name) const {
}
int Element::getIntegralAttribute(const QualifiedName& attributeName) const {
- return getAttribute(attributeName).toInt();
+ int integralValue = 0;
+ parseHTMLInteger(getAttribute(attributeName), integralValue);
+ return integralValue;
}
void Element::setIntegralAttribute(const QualifiedName& attributeName,
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-grouping-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698