Closed Bug 1503228 Opened 6 years ago Closed 6 years ago

Move PaintWorkletGlobalScope from dom/worklet to layout/style

Categories

(Core :: Layout, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: arnaud.bienner, Assigned: arnaud.bienner)

References

Details

Attachments

(1 file)

Similar to what was done for AudioWorkletGlobalScope in bug 1502004.
Blocks: 1503236
Try is green.
Just noting because it wasn't initially clear to me: the reason (or "one reason") layout/style is a reasonable home for these files is that PaintWorkletImpl.cpp happens to already live there:
https://searchfox.org/mozilla-central/source/layout/style/PaintWorkletImpl.cpp
Yes :)

And the reason to move things away from dom/worklet is that we want to keep only worklet generic stuff here.
As we are moving forward with AudioWorklet, this seems sensible to move Worklet implementation in the same place where the logic is.
This would also allow to access classes that are not exported, including PaintWorkletImpl.

And that's why that bug is blocking bug 1503236: enforcing PaintWorkletGlobalScope to take a worklet impl of the correct type requires to know about PaintWorkletImpl.

PaintWorkletImpl was introduced recently, as part of bug 1492014. See comment 12 for the reason why layout/style was choosen.
Keywords: checkin-needed
Pushed by nerli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a06d9567c399
Move PaintWorkletGlobalScope from dom/worklet to layout/style. r=karlt
Keywords: checkin-needed
Rank: 15
Priority: -- → P2
https://hg.mozilla.org/mozilla-central/rev/a06d9567c399
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: