Make ElementInnerTextCollector::IsAfterWhiteSpace() to use IsInlineTextBox()
This patch changes |ElementInnerTextCollector::IsAfterWhiteSpace()| to use |IsInlineTextBox()| instead of |InlineBox::IsText()| to detect |InlineTextBox| type properly. Note: |InlineBox::IsText()| is used for handling <br> in quirk mode, and list marker. This patch is follow-up of the patch[1] to fix the bug found by Cluster Fuzz. [1] http://crrev.com/c/1114673 Implement Element#innerText to conform the spec Bug: 877498 Change-Id: I484a93afba351b74a8b3cae0c6736e3ccdfde45d Reviewed-on: https://chromium-review.googlesource.com/1189242Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Yoichi Osato <yoichio@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#586222}
Showing
Please register or sign in to comment