Skip to content

Commit

Permalink
Fix gradient math and positioning. Formatting.
Browse files Browse the repository at this point in the history
Start adding repeating gradients.
  • Loading branch information
pyfisch committed Apr 27, 2017
1 parent 6768614 commit 803bc03
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 179 deletions.
7 changes: 6 additions & 1 deletion components/gfx/display_list/mod.rs
Expand Up @@ -890,6 +890,9 @@ pub struct Gradient {

/// A list of color stops.
pub stops: Vec<GradientStop>,

/// True if gradient repeats infinitly.
pub repeating: bool,
}

#[derive(Clone, Deserialize, HeapSizeOf, Serialize)]
Expand All @@ -912,6 +915,9 @@ pub struct RadialGradient {

/// A list of color stops.
pub stops: Vec<GradientStop>,

/// True if gradient repeats infinitly.
pub repeating: bool,
}

#[derive(Clone, Deserialize, HeapSizeOf, Serialize)]
Expand All @@ -923,7 +929,6 @@ pub struct RadialGradientDisplayItem {
pub gradient: RadialGradient,
}


/// A normal border, supporting CSS border styles.
#[derive(Clone, HeapSizeOf, Deserialize, Serialize)]
pub struct NormalBorder {
Expand Down

0 comments on commit 803bc03

Please sign in to comment.