Changeset 175968 in webkit
- Timestamp:
- Nov 11, 2014, 12:41:50 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
html/HTMLCollection.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r175966 r175968 1 2014-11-11 Chris Dumez <cdumez@apple.com> 2 3 Regression(r175947): Caused assertions in debug builds 4 https://bugs.webkit.org/show_bug.cgi?id=138620 5 6 Reviewed by Benjamin Poulain. 7 8 In HTMLCollection::traverseForward(), traversedCount was incremented 1 9 time too many when hitting the end of the collection (i.e. element 10 becomes null). Doing a partial revert. 11 12 No new tests, already covered by existing tests. 13 14 * html/HTMLCollection.cpp: 15 (WebCore::HTMLCollection::traverseForward): 16 1 17 2014-11-11 Tim Horton <timothy_horton@apple.com> 2 18 -
trunk/Source/WebCore/html/HTMLCollection.cpp
r175947 r175968 330 330 Element* element = ¤t; 331 331 if (usesCustomForwardOnlyTraversal()) { 332 for (traversedCount = 0; element && traversedCount < count; ++traversedCount)332 for (traversedCount = 0; traversedCount < count; ++traversedCount) { 333 333 element = customElementAfter(element); 334 if (!element) 335 return nullptr; 336 } 334 337 } else if (m_shouldOnlyIncludeDirectChildren) { 335 for (traversedCount = 0; element && traversedCount < count; ++traversedCount)338 for (traversedCount = 0; traversedCount < count; ++traversedCount) { 336 339 element = nextMatchingSiblingElement(*this, *element); 340 if (!element) 341 return nullptr; 342 } 337 343 } else { 338 for (traversedCount = 0; element && traversedCount < count; ++traversedCount)344 for (traversedCount = 0; traversedCount < count; ++traversedCount) { 339 345 element = nextMatchingElement(*this, *element, root); 346 if (!element) 347 return nullptr; 348 } 340 349 } 341 350 return element;
Note:
See TracChangeset
for help on using the changeset viewer.