[wpt-sync] Sync PR 33359 - After splitText mark node for reattach if only whitespace.
Categories
(Core :: Layout: Grid, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 33359 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/33359
Details from upstream follow.
Ian Kilpatrick <ikilpatrick@chromium.org> wrote:
After splitText mark node for reattach if only whitespace.
Text::splitText is an amazing API which splits a Text node into two.
Previously if performed a split (where the split would contain only
whitespace characters), and did a replaceChild on the content, we'd end
up with an inconsistent layout-tree containing an anonymous box with
no content.This patch forces the layout-object tree to reattach if we have
whitespace or empty content.Bug: 1308400
Change-Id: Ied477fa8d69758017f600c3b67f07c19f1db06df
Reviewed-on: https://chromium-review.googlesource.com/3551039
WPT-Export-Revision: c723eedab426d91f5eba6511ed69658f89c9331d
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
bugherder |
Description
•