commit | de3b8c8dbf530a94a15e660ecb2b9cd80a7f9843 | [log] [tgz] |
---|---|---|
author | Koji Ishii <kojii@chromium.org> | Fri Nov 09 10:35:54 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Nov 09 10:35:54 2018 |
tree | df69a33a2edc671de2b2d946a5d3151bdf85c569 | |
parent | 5d8eed38bec9b93351d1e3cd65f981380acf6e3c [diff] |
Reland "Make NGOffsetMapping available for non-LayoutNG LayoutBlockFlow" This is a reland of b43c6fca4349b7f2ff53b41926f5d7cb42ee4e0f The original CL had moved a call to ToString() to within DCHECK, because the result is used only by DCHECK. But the ToString() has a side effect that must be performed. Because of the change, this CL breaks if DCHECK is not enabled. Unfortunately, no build configs in trybots and CQs have DCHECK disabled. Reverted the change, and added TODO to clean it up. Original change's description: > Make NGOffsetMapping available for non-LayoutNG LayoutBlockFlow > > This patch allows computing NGOffsetMapping for legacy inline > formatting context. > > For an experimental project "Invisible DOM"[1][2] to support > the find-in-page feature, it is needed to compute the text > content with whitespace collapsing applied, along with the > mapping to the DOM offset. This patch adds an API to compute > NGOffsetMapping even when the LayoutBlockFlow is not laid out > by LayoutNG for that purpose. > > Note that the project is still in the early phase. We may > revisit the design as it moves forward. > > [1] https://github.com/rakina/searchable-invisible-dom > [2] https://www.chromestatus.com/feature/5105291213406208 > > Bug: 636993, 873057 > Change-Id: I101b411960813a7b9b5c9c6e2db85d28737af882 > Reviewed-on: https://chromium-review.googlesource.com/c/1322184 > Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> > Reviewed-by: Emil A Eklund <eae@chromium.org> > Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> > Reviewed-by: Rakina Zata Amni <rakina@chromium.org> > Commit-Queue: Koji Ishii <kojii@chromium.org> > Cr-Commit-Position: refs/heads/master@{#606292} TBR=yoshin@chromium.org, eae@chromium.org, xiaochengh@chromium.org, rakina@chromium.org Bug: 636993, 873057 Change-Id: I8a29073fb18a1349d758d37033e6b046a54d5beb Reviewed-on: https://chromium-review.googlesource.com/c/1327582 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#606786}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .