From 9b72c5e1a84d235726cdaf1e7b13f02183c580b9 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 26 Apr 2017 11:20:52 +0100 Subject: [PATCH] Bug 1359631 - Convert Toolkit's narrate/back.svg to use context paint to improve performance. r=dao MozReview-Commit-ID: EuXQzE3Ltsz --- toolkit/themes/shared/narrate/back.svg | 17 +++-------------- toolkit/themes/shared/narrateControls.css | 6 ++++-- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/toolkit/themes/shared/narrate/back.svg b/toolkit/themes/shared/narrate/back.svg index d29586e382ae..cf0bc5822c35 100644 --- a/toolkit/themes/shared/narrate/back.svg +++ b/toolkit/themes/shared/narrate/back.svg @@ -1,15 +1,4 @@ - - - - - - - + + + diff --git a/toolkit/themes/shared/narrateControls.css b/toolkit/themes/shared/narrateControls.css index 91d02d85a92f..252a12ee33b4 100644 --- a/toolkit/themes/shared/narrateControls.css +++ b/toolkit/themes/shared/narrateControls.css @@ -45,7 +45,9 @@ #narrate-skip-previous { border-top-left-radius: 3px; - background-image: url("chrome://global/skin/narrate/back.svg#enabled"); + background-image: url("chrome://global/skin/narrate/back.svg"); + -moz-context-properties: fill; + fill: rgb(128 128 128); } #narrate-skip-next { @@ -54,7 +56,7 @@ } #narrate-skip-previous:disabled { - background-image: url("chrome://global/skin/narrate/back.svg#disabled"); + fill: rgb(128 128 128 / 50%); } #narrate-skip-next:disabled {