Closed Bug 2018601 Opened 9 months ago Closed 8 months ago

[wpt-sync] Sync PR 57974 - [layout] Fix SVG not having relayout upon transform change.

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 57974 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/57974
Details from upstream follow.

Ian Kilpatrick <ikilpatrick@chromium.org> wrote:

[layout] Fix SVG not having relayout upon transform change.

LayoutBlock::StyleWillChange has some special logic for invalidating
SVGs within the subtree upon a transform change.

With LayoutReinsertOnInFlowStateChange enabled its possible for an
arbitrary SVG to be invalidated by LayoutBlock::StyleWillChange, but as
the object isn't attached to the layout-tree it won't get inserted as a
relayout root.

For now - modify MarkContainerChainForLayout to prevent layout-roots if
the object isn't "rooted" (attached to the root of the layout-tree).

As a followup we should change the logic within
LayoutBlock::StyleWillChange, as its relatively fragile.

Bug: 485819134, 478682594
Change-Id: I2fa229382be634dbca536c80287a7c477cd2fb37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7597896
Reviewed-by: Morten Stenshorne \<mstensho@chromium.org>
Commit-Queue: Morten Stenshorne \<mstensho@chromium.org>
Auto-Submit: Ian Kilpatrick \<ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1588539}

Component: web-platform-tests → SVG
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

GitHub PR Head
GitHub PR Base

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cbd4ed3e6bcd https://hg.mozilla.org/integration/autoland/rev/832d263c0ad2 [wpt PR 57974] - [layout] Fix SVG not having relayout upon transform change., a=testonly
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
You need to log in before you can comment on or make changes to this bug.