Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
index 32565fbcb904d936855dbdf61f22011a2050bd38..55cec816a197e80d1f6e6f397c8979908a931c40 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp |
@@ -77,7 +77,7 @@ using namespace HTMLNames; |
// Upper limit of m_listItems. According to the HTML standard, options larger |
// than this limit doesn't work well because |selectedIndex| IDL attribute is |
// signed. |
-static const unsigned maxListItems = std::numeric_limits<int>::max(); |
+static const unsigned maxListItems = INT_MAX; |
HTMLSelectElement::HTMLSelectElement(Document& document, HTMLFormElement* form) |
: HTMLFormControlElementWithState(selectTag, document, form) |