[wpt-sync] Sync PR 40523 - Further DOM Parts hierarchy reorg, and connect Document to Parts
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox116 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 40523 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/40523
Details from upstream follow.
Mason Freed <masonf@chromium.org> wrote:
Further DOM Parts hierarchy reorg, and connect Document to Parts
In implementing the connection between DocumentPart and Document,
it became apparent that there were other issues with the previous
hierarchy. Notably, Document owned DocumentPart, which was a Part,
which therefore had a |root| reference back to DocumentPart. That
made it impossible to require Part to always have a |root|.This CL revamps the hierarchy once more, to this:
PartRoot (getParts, clone) / \
DocumentPartRoot Part (root, metadata)
/
NodePart (node) ChildNodePart (prev/next/etc)With that, a Part always has a reference to its |root|, and the
DocumentPartRoot can be owned by Document and always non-nullptr.This CL also connects DocumentFragment to DocumentPartRoot.
Bug: 1453291
Change-Id: Ic0f34d3572321cf12fb960d75243e05462c9fe84
Reviewed-on: https://chromium-review.googlesource.com/4604678
WPT-Export-Revision: b6b4655efb95f0d950954db98dc06e688879c034
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
FAIL
: 1
Chrome
OK
: 1
FAIL
: 1
Safari
OK
: 1
FAIL
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /dom/parts/basic-dom-part-objects.tentative.html [wpt.fyi]
- Basic imperative DOM Parts object construction:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Basic imperative DOM Parts object construction:
Comment 5•1 year ago
|
||
bugherder |
Description
•