зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1457373 - Remove text-combine-upright digits option - r=xidorn
MozReview-Commit-ID: Ehzsd2rmBER --HG-- extra : rebase_source : 15e109be686e2b849a4676ad89a1b06bc4fe9687
This commit is contained in:
Родитель
1832f1798c
Коммит
49bbea11e3
|
@ -189,7 +189,6 @@ typedef nsStyleTransformMatrix::TransformReferenceBox TransformReferenceBox;
|
|||
/* static */ bool nsLayoutUtils::sInvalidationDebuggingIsEnabled;
|
||||
/* static */ bool nsLayoutUtils::sInterruptibleReflowEnabled;
|
||||
/* static */ bool nsLayoutUtils::sSVGTransformBoxEnabled;
|
||||
/* static */ bool nsLayoutUtils::sTextCombineUprightDigitsEnabled;
|
||||
/* static */ uint32_t nsLayoutUtils::sIdlePeriodDeadlineLimit;
|
||||
/* static */ uint32_t nsLayoutUtils::sQuiescentFramesBeforeIdlePeriod;
|
||||
|
||||
|
@ -8072,8 +8071,6 @@ nsLayoutUtils::Initialize()
|
|||
"layout.interruptible-reflow.enabled");
|
||||
Preferences::AddBoolVarCache(&sSVGTransformBoxEnabled,
|
||||
"svg.transform-box.enabled");
|
||||
Preferences::AddBoolVarCache(&sTextCombineUprightDigitsEnabled,
|
||||
"layout.css.text-combine-upright-digits.enabled");
|
||||
Preferences::AddUintVarCache(&sIdlePeriodDeadlineLimit,
|
||||
"layout.idle_period.time_limit",
|
||||
DEFAULT_IDLE_PERIOD_TIME_LIMIT);
|
||||
|
|
|
@ -2521,10 +2521,6 @@ public:
|
|||
return sSVGTransformBoxEnabled;
|
||||
}
|
||||
|
||||
static bool TextCombineUprightDigitsEnabled() {
|
||||
return sTextCombineUprightDigitsEnabled;
|
||||
}
|
||||
|
||||
static uint32_t IdlePeriodDeadlineLimit() {
|
||||
return sIdlePeriodDeadlineLimit;
|
||||
}
|
||||
|
@ -3131,7 +3127,6 @@ private:
|
|||
static bool sInvalidationDebuggingIsEnabled;
|
||||
static bool sInterruptibleReflowEnabled;
|
||||
static bool sSVGTransformBoxEnabled;
|
||||
static bool sTextCombineUprightDigitsEnabled;
|
||||
static uint32_t sIdlePeriodDeadlineLimit;
|
||||
static uint32_t sQuiescentFramesBeforeIdlePeriod;
|
||||
|
||||
|
|
|
@ -235,7 +235,6 @@ CSS_KEY(deg, deg)
|
|||
CSS_KEY(diagonal-fractions, diagonal_fractions)
|
||||
CSS_KEY(dialog, dialog)
|
||||
CSS_KEY(difference, difference)
|
||||
CSS_KEY(digits, digits)
|
||||
CSS_KEY(disabled, disabled)
|
||||
CSS_KEY(disc, disc)
|
||||
CSS_KEY(discretionary-ligatures, discretionary_ligatures)
|
||||
|
|
|
@ -1251,7 +1251,6 @@ const KTableEntry nsCSSProps::kTextJustifyKTable[] = {
|
|||
const KTableEntry nsCSSProps::kTextCombineUprightKTable[] = {
|
||||
{ eCSSKeyword_none, NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE },
|
||||
{ eCSSKeyword_all, NS_STYLE_TEXT_COMBINE_UPRIGHT_ALL },
|
||||
{ eCSSKeyword_digits, NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_2 }, // w/o number ==> 2
|
||||
{ eCSSKeyword_UNKNOWN, -1 }
|
||||
};
|
||||
|
||||
|
|
|
@ -4180,17 +4180,9 @@ nsComputedDOMStyle::DoGetTextCombineUpright()
|
|||
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
|
||||
uint8_t tch = StyleText()->mTextCombineUpright;
|
||||
|
||||
if (tch <= NS_STYLE_TEXT_COMBINE_UPRIGHT_ALL) {
|
||||
val->SetIdent(
|
||||
nsCSSProps::ValueToKeywordEnum(tch,
|
||||
nsCSSProps::kTextCombineUprightKTable));
|
||||
} else if (tch <= NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_2) {
|
||||
val->SetString(NS_LITERAL_STRING("digits 2"));
|
||||
} else if (tch <= NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_3) {
|
||||
val->SetString(NS_LITERAL_STRING("digits 3"));
|
||||
} else {
|
||||
val->SetString(NS_LITERAL_STRING("digits 4"));
|
||||
}
|
||||
val->SetIdent(
|
||||
nsCSSProps::ValueToKeywordEnum(tch,
|
||||
nsCSSProps::kTextCombineUprightKTable));
|
||||
|
||||
return val.forget();
|
||||
}
|
||||
|
|
|
@ -899,9 +899,6 @@ enum class StyleWhiteSpace : uint8_t {
|
|||
// See nsStyleText
|
||||
#define NS_STYLE_TEXT_COMBINE_UPRIGHT_NONE 0
|
||||
#define NS_STYLE_TEXT_COMBINE_UPRIGHT_ALL 1
|
||||
#define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_2 2
|
||||
#define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_3 3
|
||||
#define NS_STYLE_TEXT_COMBINE_UPRIGHT_DIGITS_4 4
|
||||
|
||||
// See nsStyleText
|
||||
#define NS_STYLE_LINE_HEIGHT_BLOCK_HEIGHT 0
|
||||
|
|
|
@ -6320,11 +6320,6 @@ if (IsCSSPropertyPrefEnabled("layout.css.touch_action.enabled")) {
|
|||
};
|
||||
}
|
||||
|
||||
if (IsCSSPropertyPrefEnabled("layout.css.text-combine-upright-digits.enabled")) {
|
||||
gCSSProperties["text-combine-upright"].other_values.push(
|
||||
"digits", "digits 2", "digits 3", "digits 4", "digits 3");
|
||||
}
|
||||
|
||||
if (IsCSSPropertyPrefEnabled("layout.css.text-justify.enabled")) {
|
||||
gCSSProperties["text-justify"] = {
|
||||
domProp: "textJustify",
|
||||
|
|
|
@ -2911,9 +2911,6 @@ pref("layout.css.prefixes.font-features", true);
|
|||
// Is support for background-blend-mode enabled?
|
||||
pref("layout.css.background-blend-mode.enabled", true);
|
||||
|
||||
// Is support for CSS text-combine-upright: digits 2-4 enabled?
|
||||
pref("layout.css.text-combine-upright-digits.enabled", false);
|
||||
|
||||
// Is -moz-osx-font-smoothing enabled?
|
||||
// Only supported in OSX builds
|
||||
#ifdef XP_MACOSX
|
||||
|
|
Загрузка…
Ссылка в новой задаче