Closed Bug 1834960 Opened 3 years ago Closed 3 years ago

Unused Locked<> in CssRule::Property can be removed

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: zrhoffman, Assigned: zrhoffman)

References

Details

Attachments

(4 files)

As mentioned in bug 1834674, CssRule::Propertyonly gets locked for reading, and not writing, but really theLocked<>` can just be removed.

Assignee: nobody → zach
Status: NEW → ASSIGNED

This makes me a bit less uncomfortable about the previous changes :)

Note that some of this code gets modified in the following patch.

Anything that doesn't need interior mutability doesn't need Locked<>
around it.

Depends on D179059

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9ec2f71281b7 Support non-Locked CSS rules at the FFI boundary r=emilio https://hg.mozilla.org/integration/autoland/rev/15ea211deec5 [css-properties-values-api] Remove Locked<> from CssRule::Property arc r=emilio
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5add0b5f1728 Avoid some code duplication from the previous patches. r=zrhoffman https://hg.mozilla.org/integration/autoland/rev/6208f081bcc6 Use non-locked rules for all rule types that can. r=zrhoffman https://hg.mozilla.org/integration/autoland/rev/b9e75060a406 apply code formatting via Lando
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: