summaryrefslogtreecommitdiffstats
path: root/layout/style/nsComputedDOMStyle.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-11 23:59:53 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:42:10 +0200
commit0e2b0db4d75f8fca6871da14f59f859fcf2f89ca (patch)
treeaa33e56de6eb3b912a9ae7c1fa7ccb92590a8204 /layout/style/nsComputedDOMStyle.cpp
parentc4f65de9b2c195ebe090a2f334aa7207c30a8a28 (diff)
downloadUXP-0e2b0db4d75f8fca6871da14f59f859fcf2f89ca.tar
UXP-0e2b0db4d75f8fca6871da14f59f859fcf2f89ca.tar.gz
UXP-0e2b0db4d75f8fca6871da14f59f859fcf2f89ca.tar.lz
UXP-0e2b0db4d75f8fca6871da14f59f859fcf2f89ca.tar.xz
UXP-0e2b0db4d75f8fca6871da14f59f859fcf2f89ca.zip
[CSS] Add stub for font-variation-settings
This stub is added because websites insist on considering this very hardware-dependent and O.S.-variable low-level font-control as a "critical feature" which it isn't as there is 0 guarantee that font variation settings are supported or honored by any operating system used by the client. On top this is a WD status feature that sites shouldn't be using, and the feature itself is strongly discouraged for use in favor of standard CSS font manipulation keywords like `font-weight`.
Diffstat (limited to 'layout/style/nsComputedDOMStyle.cpp')
-rw-r--r--layout/style/nsComputedDOMStyle.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp
index 647f7f6dc..c717d59c8 100644
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -1620,6 +1620,16 @@ nsComputedDOMStyle::DoGetFontFeatureSettings()
}
already_AddRefed<CSSValue>
+nsComputedDOMStyle::DoGetFontVariationSettings()
+{
+ // TODO: This is still a stub, always returning "normal"
+ RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
+
+ val->SetIdent(eCSSKeyword_normal);
+ return val.forget();
+}
+
+already_AddRefed<CSSValue>
nsComputedDOMStyle::DoGetFontKerning()
{
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;