Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement radial gradients #16385

Merged
merged 9 commits into from Apr 29, 2017

Fix gradient math and positioning. Formatting.

Start adding repeating gradients.
  • Loading branch information
pyfisch committed Apr 27, 2017
commit 803bc0395c2a4f07a0043ddfef1bdad32eb250a6
@@ -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)]
@@ -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)]
@@ -923,7 +929,6 @@ pub struct RadialGradientDisplayItem {
pub gradient: RadialGradient,
}

This comment has been minimized.

@emilio

emilio Apr 16, 2017

Member

nit: stray newline.


/// A normal border, supporting CSS border styles.
#[derive(Clone, HeapSizeOf, Deserialize, Serialize)]
pub struct NormalBorder {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.