Changeset 130721 in webkit
- Timestamp:
- Oct 8, 2012, 11:01:09 PM (14 years ago)
- Location:
- branches/chromium/1271
- Files:
-
- 1 edited
- 2 copied
-
LayoutTests/fast/forms/select/select-typeahead-crash-expected.txt (copied) (copied from trunk/LayoutTests/fast/forms/select/select-typeahead-crash-expected.txt )
-
LayoutTests/fast/forms/select/select-typeahead-crash.html (copied) (copied from trunk/LayoutTests/fast/forms/select/select-typeahead-crash.html )
-
Source/WebCore/html/HTMLSelectElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1271/Source/WebCore/html/HTMLSelectElement.cpp
r125710 r130721 1515 1515 1516 1516 int selected = selectedIndex(); 1517 int index = (optionToListIndex(selected >= 0 ? selected : 0) + searchStartOffset) % itemCount; 1518 ASSERT(index >= 0); 1517 int index = optionToListIndex(selected >= 0 ? selected : 0) + searchStartOffset; 1518 if (index < 0) 1519 return; 1520 index %= itemCount; 1519 1521 1520 1522 // Compute a case-folded copy of the prefix string before beginning the search for
Note:
See TracChangeset
for help on using the changeset viewer.