Skip to content

Commit 9daa49d

Browse files
mr-cheffyemilio
authored andcommitted
Bug 1849937 - Remove svg.embedder-prefers-color-scheme.content.enabled pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D258826
1 parent f8638a4 commit 9daa49d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

layout/svg/SVGImageContext.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ void SVGImageContext::MaybeStoreContextPaint(SVGImageContext& aContext,
3838
return;
3939
}
4040

41-
if (StaticPrefs::svg_embedder_prefers_color_scheme_content_enabled() ||
42-
aPresContext.Document()->ChromeRulesEnabled()) {
41+
{
4342
auto scheme = LookAndFeel::ColorSchemeForStyle(
4443
*aPresContext.Document(), aStyle.StyleUI()->mColorScheme.bits,
4544
ColorSchemeMode::Preferred);

modules/libpref/init/StaticPrefList.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17329,13 +17329,6 @@
1732917329
value: false
1733017330
mirror: always
1733117331

17332-
# This pref controls whether the `prefers-color-scheme` value of SVG images
17333-
# reacts to the embedder `color-scheme` in content.
17334-
- name: svg.embedder-prefers-color-scheme.content.enabled
17335-
type: RelaxedAtomicBool
17336-
value: true
17337-
mirror: always
17338-
1733917332
# Enables the 'context-fill' and 'context-stroke' keywords for particular
1734017333
# domains. We expect this list to be Mozilla-controlled properties, since the
1734117334
# 'context-*' keywords are not part of any spec. We expect to remove this

0 commit comments

Comments
 (0)