mirror of
https://github.com/servo/servo.git
synced 2025-08-23 22:35:33 +01:00
Maintain Corner type, add None type to AngleOrCorner
This commit is contained in:
parent
0530e648af
commit
5d56946bc2
6 changed files with 113 additions and 49 deletions
|
@ -160,10 +160,9 @@ impl nsStyleImage {
|
|||
use gecko_bindings::structs::{NS_STYLE_GRADIENT_SIZE_CLOSEST_SIDE, NS_STYLE_GRADIENT_SIZE_EXPLICIT_SIZE};
|
||||
use gecko_bindings::structs::{NS_STYLE_GRADIENT_SIZE_FARTHEST_CORNER, NS_STYLE_GRADIENT_SIZE_FARTHEST_SIDE};
|
||||
use gecko_bindings::structs::nsStyleCoord;
|
||||
use values::computed::{GradientKind, GradientShape, LengthOrKeyword};
|
||||
use values::computed::{AngleOrCorner, GradientKind, GradientShape, LengthOrKeyword};
|
||||
use values::computed::LengthOrPercentageOrKeyword;
|
||||
use values::specified::{AngleOrCorner, HorizontalDirection};
|
||||
use values::specified::{SizeKeyword, VerticalDirection};
|
||||
use values::specified::{HorizontalDirection, SizeKeyword, VerticalDirection};
|
||||
|
||||
let stop_count = gradient.stops.len();
|
||||
if stop_count >= ::std::u32::MAX as usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue