Closed Bug 1195349 Opened 9 years ago Closed 9 years ago

make css-color.js preserve case

Categories

(DevTools :: Inspector, defect)

defect
Not set
normal

Tracking

(firefox43 fixed)

RESOLVED FIXED
Firefox 43
Tracking Status
firefox43 --- fixed

People

(Reporter: tromey, Assigned: tromey)

References

Details

Attachments

(1 file, 2 obsolete files)

While working on the as-authored project, I noticed that
css-color.js might not preserve the case of the input text.
I think it should.
This patch also adds classifyColor, which is used subsequently in the
as-authored series.
Attachment #8648758 - Flags: review?(pbrosset)
Comment on attachment 8648758 [details] [diff] [review]
make css-color preserve original text; add classifyColor

Review of attachment 8648758 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM

::: toolkit/devtools/css-color.js
@@ +259,5 @@
>     * @param  {String} color
>     *         Any valid color string
>     */
>    newColor: function(color) {
> +    this.lowerCased = color.toLowerCase();

This requires a short comment I think. Maybe:

// Store the lowerCased version of this color to help with color format testing later. The actual authored text is also kept so it can be returned when needed.
Attachment #8648758 - Flags: review?(pbrosset) → review+
Updated per review.
Attachment #8648758 - Attachment is obsolete: true
Attachment #8649491 - Flags: review+
Keywords: checkin-needed
Don't redefine "loader" in the test.
Attachment #8649491 - Attachment is obsolete: true
Attachment #8655448 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/326daa2650c3
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: