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
Support interpolation between currentcolor and numeric color #17219
Merged
+817
−689
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6e1b36b
Remove unused CSSRGBA.
upsuper a7dda61
Move specified color types into specified::color mod.
upsuper b7d8fd0
Move ToComputedValue impl of color types into specified::color.
upsuper f3610d2
Factor out Gecko-specific color keywords.
upsuper d0d1707
Unify specified Color type between Stylo and Servo.
upsuper bf77f81
Create RGBAColor for colors compute to RGBA.
upsuper 7568a19
Merge CSSColor into Color.
upsuper 742c45f
Remove complex_color parameter.
upsuper c629355
Add separate computed Color value.
upsuper 5c643ad
Simplify caret-color conversion.
upsuper File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Remove unused CSSRGBA.
- Loading branch information
commit 6e1b36b32f8a20740f9d7f0cf8c46a10a4c94541
| @@ -0,0 +1,44 @@ | ||
| --- components/style/values/specified/mod.rs | ||
| +++ components/style/values/specified/mod.rs | ||
|
||
| @@ -4,40 +4,38 @@ | ||
|
|
||
| //! Specified values. | ||
| //! | ||
| //! TODO(emilio): Enhance docs. | ||
|
|
||
| use Namespace; | ||
| use context::QuirksMode; | ||
| use cssparser::{self, Parser, Token, serialize_identifier}; | ||
| -use itoa; | ||
| use parser::{ParserContext, Parse}; | ||
| use self::grid::TrackSizeOrRepeat; | ||
| use self::url::SpecifiedUrl; | ||
| use std::ascii::AsciiExt; | ||
| use std::f32; | ||
| use std::fmt; | ||
| -use std::io::Write; | ||
| use style_traits::ToCss; | ||
| use style_traits::values::specified::AllowedNumericType; | ||
| use super::{Auto, CSSFloat, CSSInteger, Either, None_}; | ||
| use super::computed::{self, Context}; | ||
| use super::computed::{Shadow as ComputedShadow, ToComputedValue}; | ||
| use super::generics::grid::{TrackBreadth as GenericTrackBreadth, TrackSize as GenericTrackSize}; | ||
| use super::generics::grid::TrackList as GenericTrackList; | ||
| use values::computed::ComputedValueAsSpecified; | ||
| use values::specified::calc::CalcNode; | ||
|
|
||
| #[cfg(feature = "gecko")] | ||
| pub use self::align::{AlignItems, AlignJustifyContent, AlignJustifySelf, JustifyItems}; | ||
| pub use self::background::BackgroundSize; | ||
| pub use self::border::{BorderCornerRadius, BorderImageSlice, BorderImageWidth}; | ||
| pub use self::border::{BorderImageSideWidth, BorderRadius, BorderSideWidth}; | ||
| -pub use self::color::Color; | ||
| +pub use self::color::{CSSColor, Color}; | ||
| pub use self::rect::LengthOrNumberRect; | ||
| pub use super::generics::grid::GridLine; | ||
| pub use self::image::{ColorStop, EndingShape as GradientEndingShape, Gradient}; | ||
| pub use self::image::{GradientItem, GradientKind, Image, ImageRect, ImageLayer}; | ||
| pub use self::length::AbsoluteLength; | ||
| pub use self::length::{FontRelativeLength, ViewportPercentageLength, CharacterWidth, Length, CalcLengthOrPercentage}; | ||
| pub use self::length::{Percentage, LengthOrNone, LengthOrNumber, LengthOrPercentage, LengthOrPercentageOrAuto}; | ||
| pub use self::length::{LengthOrPercentageOrNone, LengthOrPercentageOrAutoOrContent, NoCalcLength}; | ||
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
This file should have not landed :(