AccessibilityRenderObject::textUnderElement needs to assert on unclean tree.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 May 2017 18:43:40 +0000 (18:43 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 May 2017 18:43:40 +0000 (18:43 +0000)
commitb48cd60a1db78b62659cff1666ed5a90147bf351
tree5cdfab33fa3d6232067b0701e5f341530c636921
parenta76c61a8146b9fa9777c3beebb23224f9d4c4a02
AccessibilityRenderObject::textUnderElement needs to assert on unclean tree.
https://bugs.webkit.org/show_bug.cgi?id=172065

Reviewed by Simon Fraser.

r192103 changed the assert logic incorrectly. If the tree is dirty, regardless of the renderer's type,
TextIterator will end up forcing style update/layout on the render tree.
The original assert would have hit with bug 171546 prior to r216726.

* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::textUnderElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityRenderObject.cpp