Closed Bug 1886170 Opened 2 years ago Closed 2 years ago

[css-color] Remove the ColorParser abstraction.

Categories

(Core :: CSS Parsing and Computation, task, P3)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: tlouw, Assigned: tlouw)

Details

Attachments

(3 files, 1 obsolete file)

There is no more need for the ColorParser as it now only forwards into the ColorFunction enum.

The ColorParser is not used any more as now it only forwards to the
ColorFunction enum.

Assignee: nobody → tlouw
Status: NEW → ASSIGNED

Add a ColorFunction enum that can hold the results of a parsed color
with all the required information still intact.

This abstraction was in place when the color parsing still lived in
the cssparser crate, but now it is not needed any more and by removing
it we make the parsing more flexible.

Note: the ColorParser trait itself is still in tact and will be
addressed in another patch.

Depends on D207007

The ColorParser trait only has one implementation so we can make it a
concrete type now. It will be extended in the future.

Depends on D207008

Attachment #9395741 - Attachment description: WIP: Bug 1886170 - Add ColorFunction enum r=#layout → Bug 1886170 - Add ColorFunction enum r=#layout
Attachment #9395742 - Attachment description: WIP: Bug 1886170 - Remove ColorParser::Output abstraction r=#layout → Bug 1886170 - Remove ColorParser::Output abstraction r=#layout
Attachment #9395743 - Attachment description: WIP: Bug 1886170 - Change Color Parser trait into a concrete type r=#layout → Bug 1886170 - Change Color Parser trait into a concrete type r=#layout
Attachment #9391999 - Attachment is obsolete: true
Pushed by tlouw@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/279d170d3e2b Add ColorFunction enum r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/065f4b75e320 Remove ColorParser::Output abstraction r=layout-reviewers,emilio https://hg.mozilla.org/integration/autoland/rev/3b4ceebe267a Change Color Parser trait into a concrete type r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: