Closed
Bug 1369245
Opened 8 years ago
Closed 8 years ago
Convert browser/extensions/presentation/skin/shared/link.svg to use context paint
Categories
(Firefox :: Site Permissions, enhancement)
Firefox
Site Permissions
Tracking
()
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
(Keywords: perf)
Attachments
(1 file)
4.80 KB,
patch
|
mconley
:
review+
|
Details | Diff | Splinter Review |
We should convert browser/extensions/presentation/skin/shared/link.svg to use context paint for icon coloring instead of using filters.
![]() |
Assignee | |
Comment 1•8 years ago
|
||
I guess this should live under Device Permissions, since that's where bug 1289974 (the bug that added this SVG file) lives.
Component: Theme → Device Permissions
![]() |
Assignee | |
Comment 2•8 years ago
|
||
Attachment #8873253 -
Flags: review?(mconley)
![]() |
Assignee | |
Comment 3•8 years ago
|
||
Note that we have to use setProperty since '-moz-context-properties' is not enumerable, so can't be set via style.mozContextProperties.
Also note that I split up the non-intersecting regions of the path data into separate 'path' elements since that is likely to perform better.
Comment 4•8 years ago
|
||
Comment on attachment 8873253 [details] [diff] [review]
patch
Review of attachment 8873253 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
::: browser/extensions/presentation/skin/shared/link.svg
@@ +1,3 @@
> +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
> + width="32px" height="32px" viewBox="0 0 32 32">
> + <path fill="context-fill gray" d="M15.246,17.992c0,1.064,0.862,1.926,1.926,1.926c1.064,0,1.926-0.862,1.926-1.926c0-1.064-0.862-1.926-1.926-1.926C16.108,16.066,15.246,16.929,15.246,17.992z"/>
Note that I haven't actually checked to ensure that the icon looks the same.
Attachment #8873253 -
Flags: review?(mconley) → review+
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ede3a183ade
Convert browser/extensions/presentation/skin/shared/link.svg to use context paint. r=mconley
Comment 6•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
You need to log in
before you can comment on or make changes to this bug.
Description
•