mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
Backed out changeset 6fb4628a5eeb because it landed with the wrong bug number
This commit is contained in:
parent
b74e6e788f
commit
c22644c819
@ -10392,12 +10392,9 @@ CSSParserImpl::ParseWebkitGradientColorStops(nsCSSValueGradient* aGradient)
|
|||||||
nsCSSValueGradientStop* stop1 = aGradient->mStops.AppendElement();
|
nsCSSValueGradientStop* stop1 = aGradient->mStops.AppendElement();
|
||||||
stop1->mColor.SetIntegerColorValue(NS_RGBA(0, 0, 0, 0),
|
stop1->mColor.SetIntegerColorValue(NS_RGBA(0, 0, 0, 0),
|
||||||
eCSSUnit_RGBAColor);
|
eCSSUnit_RGBAColor);
|
||||||
stop1->mLocation.SetPercentValue(0.0f);
|
|
||||||
|
|
||||||
nsCSSValueGradientStop* stop2 = aGradient->mStops.AppendElement();
|
nsCSSValueGradientStop* stop2 = aGradient->mStops.AppendElement();
|
||||||
stop2->mColor.SetIntegerColorValue(NS_RGBA(0, 0, 0, 0),
|
stop2->mColor.SetIntegerColorValue(NS_RGBA(0, 0, 0, 0),
|
||||||
eCSSUnit_RGBAColor);
|
eCSSUnit_RGBAColor);
|
||||||
stop2->mLocation.SetPercentValue(1.0f);
|
|
||||||
} else if (aGradient->mStops.Length() == 1) {
|
} else if (aGradient->mStops.Length() == 1) {
|
||||||
// Copy whatever the author provided in the first stop:
|
// Copy whatever the author provided in the first stop:
|
||||||
nsCSSValueGradientStop* stop = aGradient->mStops.AppendElement();
|
nsCSSValueGradientStop* stop = aGradient->mStops.AppendElement();
|
||||||
|
@ -684,7 +684,6 @@ if (IsCSSPropertyPrefEnabled("layout.css.prefixes.webkit")) {
|
|||||||
|
|
||||||
// radial w/ no color stops (valid) and a several different radius values:
|
// radial w/ no color stops (valid) and a several different radius values:
|
||||||
"-webkit-gradient(radial, 1 2, 8, 3 4, 9)",
|
"-webkit-gradient(radial, 1 2, 8, 3 4, 9)",
|
||||||
"-webkit-gradient(radial, 0 0, 10, 0 0, 5)",
|
|
||||||
"-webkit-gradient(radial, 1 2, -1.5, center center, +99999.9999)",
|
"-webkit-gradient(radial, 1 2, -1.5, center center, +99999.9999)",
|
||||||
|
|
||||||
// radial w/ color stops
|
// radial w/ color stops
|
||||||
|
Loading…
Reference in New Issue
Block a user