Flex highlighter doesn't adjust color of pattern
Categories
(DevTools :: Inspector: Layout, defect, P2)
Tracking
(firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: mbalfanz, Assigned: yonashiro.mellina, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: dt-q)
Attachments
(2 files)
STR:
- While on bugzilla, inspect
#page-toolbar
- Toggle the flex highlighter on
- Change the highlighter color
ER: Color of both lines and background pattern should change
AR: Only color of lines changes, background pattern remains the same
Comment 1•5 years ago
•
|
||
This is happening because we cache these patterns and their color. https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters/flexbox.js#243,249,292,298.
A potential fix is to store the previous color, and when that changes, we invalidate and remove all the patterns in these caches. We would make this change inside of _update()
just before we render the lines. https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters/flexbox.js#865
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Hi everyone,
Could I give this a try?
Thanks!
Comment 3•5 years ago
|
||
(In reply to Mellina Yonashiro from comment #2)
Hi everyone,
Could I give this a try?
Thanks!
Yes, of course. Please let me know if I can help.
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Thanks, Gabriel.
I had some issues building Firefox, but things are working now. I will have a look at this bug as soon as it is done.
Assignee | ||
Comment 6•5 years ago
|
||
Comment 7•5 years ago
|
||
Hi Mellina, it looks like Gabriel made a few last comments in phabricator about your patch. Are you still planning on working on it?
If you just need more time, that's totally fine. Just let us know.
Assignee | ||
Comment 8•5 years ago
|
||
Hi Patrick, sorry for the late reply.
I saw it, but I didn't have time to look at it. I have time tomorrow and will work on it.
Sorry again.
Comment 10•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•