From bec39347bb3bb5bf1187ccaf471d26247f28b585 Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Thu, 30 Sep 2010 15:42:16 +0100 Subject: Merge WebKit at r68651 : Initial merge by git. Change-Id: I3d6bff59f17eedd6722723354f386fec9be8ad12 --- WebCore/wml/WMLElement.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'WebCore/wml') diff --git a/WebCore/wml/WMLElement.cpp b/WebCore/wml/WMLElement.cpp index 5c8a94c..9b0be47 100644 --- a/WebCore/wml/WMLElement.cpp +++ b/WebCore/wml/WMLElement.cpp @@ -26,6 +26,7 @@ #include "Attribute.h" #include "CSSPropertyNames.h" #include "HTMLNames.h" +#include "HTMLParserIdioms.h" #include "RenderObject.h" #include "WMLErrorHandling.h" #include "WMLNames.h" @@ -73,7 +74,7 @@ void WMLElement::parseMappedAttribute(Attribute* attr) } else if (attr->name() == HTMLNames::tabindexAttr) { String indexstring = attr->value(); int tabindex = 0; - if (parseHTMLInteger(tabindex)) { + if (parseHTMLInteger(indexstring, tabindex)) { // Clamp tabindex to the range of 'short' to match Firefox's behavior. setTabIndexExplicitly(max(static_cast(std::numeric_limits::min()), min(tabindex, static_cast(std::numeric_limits::max())))); } -- cgit v1.1