[LayoutNG] Stop innerText from crashing in production build for missing layout
|Element.innerText| is a hot code path called on every page by by TranslateHelper. However, there are some cases where we fail to layout certain blocks, and hence their NGOffsetMapping can't be computed. As the root cause is hard to fix, this patch works around it by making |innerText| emit empty strings on the failed blocks so that we don't crash in this hot code path. Bug: 967995, 955678 Change-Id: Idd8f5dbaea71d49fc70fc4a6202755d90b17b676 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1636669 Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#664553}
Showing
Please register or sign in to comment