Changeset 216980 in webkit
- Timestamp:
- May 17, 2017, 10:34:27 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r216979 r216980 1 2017-05-17 Nan Wang <n_wang@apple.com> 2 3 ASSERTION FAILED in WebCore::AccessibilityNodeObject::insertChild() 4 https://bugs.webkit.org/show_bug.cgi?id=171927 5 <rdar://problem/32109781> 6 7 Reviewed by Chris Fleizach. 8 9 * accessibility/insert-children-assert-expected.txt: Added. 10 * accessibility/insert-children-assert.html: Added. 11 1 12 2017-05-17 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r216978 r216980 1 2017-05-17 Nan Wang <n_wang@apple.com> 2 3 ASSERTION FAILED in WebCore::AccessibilityNodeObject::insertChild() 4 https://bugs.webkit.org/show_bug.cgi?id=171927 5 <rdar://problem/32109781> 6 7 Reviewed by Chris Fleizach. 8 9 The nextSibling() logic might include the continuation sibling that's not 10 the child of the current renderer. Make sure we only insert the valid child. 11 12 Test: accessibility/insert-children-assert.html 13 14 * accessibility/AccessibilityObject.cpp: 15 (WebCore::AccessibilityObject::setIsIgnoredFromParentDataForChild): 16 * accessibility/AccessibilityRenderObject.cpp: 17 (WebCore::AccessibilityRenderObject::nextSibling): 18 1 19 2017-05-17 Ryosuke Niwa <rniwa@webkit.org> 2 20 -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r216457 r216980 3316 3316 void AccessibilityObject::setIsIgnoredFromParentDataForChild(AccessibilityObject* child) 3317 3317 { 3318 if (!child || child->parentObject() != this)3318 if (!child) 3319 3319 return; 3320 3321 if (child->parentObject() != this) { 3322 child->clearIsIgnoredFromParentData(); 3323 return; 3324 } 3320 3325 3321 3326 AccessibilityIsIgnoredFromParentData result = AccessibilityIsIgnoredFromParentData(this); -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r216825 r216980 411 411 return nullptr; 412 412 413 return axObjectCache()->getOrCreate(nextSibling); 413 // Make sure next sibling has the same parent. 414 AccessibilityObject* nextObj = axObjectCache()->getOrCreate(nextSibling); 415 if (nextObj && nextObj->parentObject() != this->parentObject()) 416 return nullptr; 417 418 return nextObj; 414 419 } 415 420
Note:
See TracChangeset
for help on using the changeset viewer.