style: Handle default angle in radians.

We were not copying the angle in this case for some reason, and I overlooked
this.
This commit is contained in:
Emilio Cobos Álvarez 2019-06-06 19:18:28 -04:00
parent b70a9fe564
commit ad142f8f2f
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -389,6 +389,7 @@ impl nsStyleImage {
let angle = Angle::from_gecko_style_coord(&gecko_gradient.mAngle);
let line_direction = match (angle, horizontal_style, vertical_style) {
(Some(a), None, None) => LineDirection::Angle(a),
(None, None, None) => LineDirection::Angle(Angle::from_radians(PI)),
(None, Some(horizontal), Some(vertical)) => {
line_direction(horizontal, vertical)
},