mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Backed out 3 changesets (bug 1209273) because something from this push appears to have broken Windows mochitests CLOSED TREE
Backed out changeset 9c6650c7e237 (bug 1209273) Backed out changeset fb8b3ab41c82 (bug 1209273) Backed out changeset 6e2e6b0c7d8e (bug 1209273) MozReview-Commit-ID: J9WSL2CjoGJ
This commit is contained in:
parent
725097c3d7
commit
8d3fbe0177
@ -24,9 +24,8 @@ var testData = [
|
||||
["n", {}, "none", -1, 0, true],
|
||||
["VK_TAB", {shiftKey: true}, "display", -1, 0, true],
|
||||
["VK_BACK_SPACE", {}, "", -1, 0, false],
|
||||
["o", {}, "object-fit", 0, 10],
|
||||
["u", {}, "outline", 0, 5],
|
||||
["VK_DOWN", {}, "outline-color", 1, 5],
|
||||
["c", {}, "caption-side", 0, 10, false],
|
||||
["o", {}, "color", 0, 7, false],
|
||||
["VK_TAB", {}, "none", -1, 0, true],
|
||||
["r", {}, "rebeccapurple", 0, 6, true],
|
||||
["VK_DOWN", {}, "red", 1, 6, true],
|
||||
|
@ -18,11 +18,8 @@
|
||||
[[12, 20], ['none', 'number-input']],
|
||||
[[12, 22], ['none']],
|
||||
[[17, 22], ['hsl', 'hsla']],
|
||||
[[19, 10], ['background', 'background-attachment', 'background-blend-mode',
|
||||
'background-clip', 'background-color', 'background-image',
|
||||
'background-origin', 'background-position', 'background-repeat',
|
||||
'background-size']],
|
||||
[[21, 9], ["-moz-calc", "auto", "calc", "inherit", "initial","unset"]],
|
||||
[[22, 5], ['color', 'color-interpolation', 'color-interpolation-filters']],
|
||||
[[25, 26], ['.devtools-toolbarbutton > tab',
|
||||
'.devtools-toolbarbutton > hbox',
|
||||
'.devtools-toolbarbutton > .toolbarbutton-menubutton-button']],
|
||||
|
@ -1985,10 +1985,7 @@ nsCSSRendering::DetermineBackgroundColor(nsPresContext* aPresContext,
|
||||
aDrawBackgroundImage = true;
|
||||
aDrawBackgroundColor = true;
|
||||
|
||||
const nsStyleVisibility* visibility = aStyleContext->StyleVisibility();
|
||||
|
||||
if (visibility->mColorAdjust != NS_STYLE_COLOR_ADJUST_EXACT &&
|
||||
aFrame->HonorPrintBackgroundSettings()) {
|
||||
if (aFrame->HonorPrintBackgroundSettings()) {
|
||||
aDrawBackgroundImage = aPresContext->GetBackgroundImageDraw();
|
||||
aDrawBackgroundColor = aPresContext->GetBackgroundColorDraw();
|
||||
}
|
||||
|
@ -247,7 +247,6 @@ CSS_KEY(ease, ease)
|
||||
CSS_KEY(ease-in, ease_in)
|
||||
CSS_KEY(ease-in-out, ease_in_out)
|
||||
CSS_KEY(ease-out, ease_out)
|
||||
CSS_KEY(economy, economy)
|
||||
CSS_KEY(element, element)
|
||||
CSS_KEY(elements, elements)
|
||||
CSS_KEY(ellipse, ellipse)
|
||||
@ -258,7 +257,6 @@ CSS_KEY(enabled, enabled)
|
||||
CSS_KEY(end, end)
|
||||
CSS_KEY(ethiopic-numeric, ethiopic_numeric)
|
||||
CSS_KEY(ex, ex)
|
||||
CSS_KEY(exact, exact)
|
||||
CSS_KEY(exclude, exclude)
|
||||
CSS_KEY(exclusion, exclusion)
|
||||
CSS_KEY(expanded, expanded)
|
||||
|
@ -1388,16 +1388,6 @@ CSS_PROP_COLOR(
|
||||
nullptr,
|
||||
offsetof(nsStyleColor, mColor),
|
||||
eStyleAnimType_Color)
|
||||
CSS_PROP_VISIBILITY(
|
||||
color-adjust,
|
||||
color_adjust,
|
||||
ColorAdjust,
|
||||
CSS_PROPERTY_PARSE_VALUE,
|
||||
"layout.css.color-adjust.enabled",
|
||||
VARIANT_HK,
|
||||
kColorAdjustKTable,
|
||||
CSS_PROP_NO_OFFSET,
|
||||
eStyleAnimType_None)
|
||||
CSS_PROP_SHORTHAND(
|
||||
-moz-columns,
|
||||
_moz_columns,
|
||||
|
@ -2364,12 +2364,6 @@ const KTableEntry nsCSSProps::kVectorEffectKTable[] = {
|
||||
{ eCSSKeyword_UNKNOWN, -1 }
|
||||
};
|
||||
|
||||
const KTableEntry nsCSSProps::kColorAdjustKTable[] = {
|
||||
{ eCSSKeyword_economy, NS_STYLE_COLOR_ADJUST_ECONOMY },
|
||||
{ eCSSKeyword_exact, NS_STYLE_COLOR_ADJUST_EXACT },
|
||||
{ eCSSKeyword_UNKNOWN, -1 }
|
||||
};
|
||||
|
||||
const KTableEntry nsCSSProps::kColorInterpolationKTable[] = {
|
||||
{ eCSSKeyword_auto, NS_STYLE_COLOR_INTERPOLATION_AUTO },
|
||||
{ eCSSKeyword_srgb, NS_STYLE_COLOR_INTERPOLATION_SRGB },
|
||||
|
@ -707,7 +707,6 @@ public:
|
||||
static const KTableEntry kVectorEffectKTable[];
|
||||
static const KTableEntry kTextAnchorKTable[];
|
||||
static const KTableEntry kTextRenderingKTable[];
|
||||
static const KTableEntry kColorAdjustKTable[];
|
||||
static const KTableEntry kColorInterpolationKTable[];
|
||||
static const KTableEntry kColumnFillKTable[];
|
||||
static const KTableEntry kBoxPropSourceKTable[];
|
||||
|
@ -979,16 +979,6 @@ nsComputedDOMStyle::DoGetColor()
|
||||
return val.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<CSSValue>
|
||||
nsComputedDOMStyle::DoGetColorAdjust()
|
||||
{
|
||||
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
|
||||
val->SetIdent(
|
||||
nsCSSProps::ValueToKeywordEnum(StyleVisibility()->mColorAdjust,
|
||||
nsCSSProps::kColorAdjustKTable));
|
||||
return val.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<CSSValue>
|
||||
nsComputedDOMStyle::DoGetOpacity()
|
||||
{
|
||||
|
@ -427,7 +427,6 @@ private:
|
||||
already_AddRefed<CSSValue> DoGetTextSizeAdjust();
|
||||
|
||||
/* Visibility properties */
|
||||
already_AddRefed<CSSValue> DoGetColorAdjust();
|
||||
already_AddRefed<CSSValue> DoGetOpacity();
|
||||
already_AddRefed<CSSValue> DoGetPointerEvents();
|
||||
already_AddRefed<CSSValue> DoGetVisibility();
|
||||
|
@ -102,7 +102,6 @@ COMPUTED_STYLE_PROP(caption_side, CaptionSide)
|
||||
COMPUTED_STYLE_PROP(clear, Clear)
|
||||
COMPUTED_STYLE_PROP(clip, Clip)
|
||||
COMPUTED_STYLE_PROP(color, Color)
|
||||
COMPUTED_STYLE_PROP(color_adjust, ColorAdjust)
|
||||
COMPUTED_STYLE_PROP(contain, Contain)
|
||||
COMPUTED_STYLE_PROP(content, Content)
|
||||
COMPUTED_STYLE_PROP(counter_increment, CounterIncrement)
|
||||
|
@ -6455,12 +6455,6 @@ nsRuleNode::ComputeVisibilityData(void* aStartStruct,
|
||||
MOZ_ASSERT(orientation->GetUnit() == eCSSUnit_Null, "Should be null unit");
|
||||
}
|
||||
|
||||
SetDiscrete(*aRuleData->ValueForColorAdjust(), visibility->mColorAdjust,
|
||||
conditions,
|
||||
SETDSC_ENUMERATED | SETDSC_UNSET_INHERIT,
|
||||
parentVisibility->mColorAdjust,
|
||||
NS_STYLE_COLOR_ADJUST_ECONOMY, 0, 0, 0, 0);
|
||||
|
||||
COMPUTE_END_INHERITED(Visibility, visibility)
|
||||
}
|
||||
|
||||
|
@ -1119,10 +1119,6 @@ enum class FillMode : uint32_t;
|
||||
#define NS_STYLE_TEXT_RENDERING_OPTIMIZELEGIBILITY 2
|
||||
#define NS_STYLE_TEXT_RENDERING_GEOMETRICPRECISION 3
|
||||
|
||||
// adjust-color
|
||||
#define NS_STYLE_COLOR_ADJUST_ECONOMY 0
|
||||
#define NS_STYLE_COLOR_ADJUST_EXACT 1
|
||||
|
||||
// color-interpolation and color-interpolation-filters
|
||||
#define NS_STYLE_COLOR_INTERPOLATION_AUTO 0
|
||||
#define NS_STYLE_COLOR_INTERPOLATION_SRGB 1
|
||||
|
@ -3172,7 +3172,6 @@ nsStyleVisibility::nsStyleVisibility(nsPresContext* aPresContext)
|
||||
mPointerEvents = NS_STYLE_POINTER_EVENTS_AUTO;
|
||||
mWritingMode = NS_STYLE_WRITING_MODE_HORIZONTAL_TB;
|
||||
mTextOrientation = NS_STYLE_TEXT_ORIENTATION_MIXED;
|
||||
mColorAdjust = NS_STYLE_COLOR_ADJUST_ECONOMY;
|
||||
}
|
||||
|
||||
nsStyleVisibility::nsStyleVisibility(const nsStyleVisibility& aSource)
|
||||
@ -3184,7 +3183,6 @@ nsStyleVisibility::nsStyleVisibility(const nsStyleVisibility& aSource)
|
||||
mPointerEvents = aSource.mPointerEvents;
|
||||
mWritingMode = aSource.mWritingMode;
|
||||
mTextOrientation = aSource.mTextOrientation;
|
||||
mColorAdjust = aSource.mColorAdjust;
|
||||
}
|
||||
|
||||
nsChangeHint nsStyleVisibility::CalcDifference(const nsStyleVisibility& aOther) const
|
||||
@ -3219,10 +3217,6 @@ nsChangeHint nsStyleVisibility::CalcDifference(const nsStyleVisibility& aOther)
|
||||
NS_UpdateHint(hint, nsChangeHint_NeedReflow);
|
||||
NS_UpdateHint(hint, nsChangeHint_NeedDirtyReflow); // XXX remove me: bug 876085
|
||||
}
|
||||
if (mColorAdjust != aOther.mColorAdjust) {
|
||||
// color-adjust only affects media where dynamic changes can't happen.
|
||||
NS_UpdateHint(hint, nsChangeHint_NeutralChange);
|
||||
}
|
||||
}
|
||||
return hint;
|
||||
}
|
||||
|
@ -2063,8 +2063,7 @@ struct nsStyleVisibility
|
||||
|
||||
nsChangeHint CalcDifference(const nsStyleVisibility& aOther) const;
|
||||
static nsChangeHint MaxDifference() {
|
||||
return NS_STYLE_HINT_FRAMECHANGE |
|
||||
nsChangeHint_NeutralChange;
|
||||
return NS_STYLE_HINT_FRAMECHANGE;
|
||||
}
|
||||
static nsChangeHint DifferenceAlwaysHandledForDescendants() {
|
||||
// CalcDifference never returns the reflow hints that are sometimes
|
||||
@ -2080,7 +2079,6 @@ struct nsStyleVisibility
|
||||
uint8_t mPointerEvents; // [inherited] see nsStyleConsts.h
|
||||
uint8_t mWritingMode; // [inherited] see nsStyleConsts.h
|
||||
uint8_t mTextOrientation; // [inherited] see nsStyleConsts.h
|
||||
uint8_t mColorAdjust; // [inherited] see nsStyleConsts.h
|
||||
|
||||
bool IsVisible() const {
|
||||
return (mVisible == NS_STYLE_VISIBILITY_VISIBLE);
|
||||
|
@ -1368,14 +1368,6 @@ var gCSSProperties = {
|
||||
alias_for: "box-sizing",
|
||||
subproperties: [ "box-sizing" ],
|
||||
},
|
||||
"color-adjust": {
|
||||
domProp: "colorAdjust",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: [ "economy" ],
|
||||
other_values: [ "exact" ],
|
||||
invalid_values: []
|
||||
},
|
||||
"-moz-columns": {
|
||||
domProp: "MozColumns",
|
||||
inherited: false,
|
||||
|
@ -5248,7 +5248,5 @@ pref("dom.input.fallbackUploadDir", "");
|
||||
// Turn rewriting of youtube embeds on/off
|
||||
pref("plugins.rewrite_youtube_embeds", true);
|
||||
|
||||
// Is support for 'color-adjust' CSS property enabled?
|
||||
pref("layout.css.color-adjust.enabled", true);
|
||||
// Disable browser frames by default
|
||||
pref("dom.mozBrowserFramesEnabled", false);
|
||||
|
Loading…
Reference in New Issue
Block a user