Closed Bug 1761376 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33359 - After splitText mark node for reattach if only whitespace.

Categories

(Core :: Layout: Grid, task, P4)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mozilla.org, 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

Component: web-platform-tests → Layout: Grid
Product: Testing → Core
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4548c8c09c85
[wpt PR 33359] - After splitText mark node for reattach if only whitespace., a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.