CssLogic Maintenance
Categories
(DevTools :: General, task, P3)
Tracking
(firefox69 fixed)
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: rcaliman, Assigned: rcaliman)
Details
Attachments
(2 files)
Miscellaneous maintenance in CssLogic and associated files:
- remove obsolete code
- fix comments
| Assignee | ||
Comment 1•7 years ago
|
||
isInherited is a callback function that checks if a given CSS property is inherited. It is misleadingly commented as a cache of inherited properties (which perhaps it is on the InspectorUtils implementation, but on the consumer side it is just a function).
The actual call is done by InspectorUtils.isPropertyInherited. There is no need to pass the handler to CssLogic or to CssPropertyInfo since InspectorUtils is available in the same context as the definition of the consumers.
There is no other use case where a custom handler is passed to check for inherited properties in so it is safe to remove this as an argument and just use InspectorUtils.isPropertyInherited where needed. This cleans up the code slightly.
| Assignee | ||
Comment 2•7 years ago
|
||
Depends on D32016
The code comment is perhaps a leftover from a file duplication to extract shared methods to shared/inspector/css-logic.js from server/actors/inspector/css-logic.js.
The comment is confusing because there is no usage of any of the CssLogic terminology within the file.
| Assignee | ||
Comment 3•7 years ago
|
||
Comment 5•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e24c48157bf1
https://hg.mozilla.org/mozilla-central/rev/e61c315b780d
Description
•