[css-contain] Fix crash on SetText optimization
This optimization was introduced in r578233, but with the test included in this patch it was causing a crash. The problem is that the RootInlineBox has more than one children which is not expected. In that case we shouldn't apply the optimization, so a new condition has been added in LayoutText::CanOptimizeSetText() to avoid it. BUG=805785 TEST=fast/css/containment/change-text-node-data-crash.html Change-Id: I924f30f4d0e0ae3e40f2437b54e5323a81a40051 Reviewed-on: https://chromium-review.googlesource.com/c/1356590Reviewed-by:Koji Ishii <kojii@chromium.org> Reviewed-by:
Emil A Eklund <eae@chromium.org> Commit-Queue: Manuel Rego <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#613036}
Showing
Please register or sign in to comment