mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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:
parent
b70a9fe564
commit
ad142f8f2f
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue