aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/values.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update ns[C]String::from -> ns[C]Str::from where possibleMichael Layzell2017-09-261-2/+2
|
* Use CSSPixelLength in LengthOrPercentage{*}.Boris Chiou2017-09-131-6/+6
| | | | | Replace Au with CSSPixelLength in LengthOrPercentage, LengthOrPercentageOrAuto, and LengthOrPercentageOrNone.
* Introduce CSSPixelLength and update NonNegativeLength.Boris Chiou2017-09-131-7/+7
| | | | | | | | | | | First, we define computed::CSSPixelLength which contains a CSSFloat, a pixel value, and then we replace computed::Length with CSSPixelLength. Therefore, the |ComputedValue| of NoCalcLength, AbsoluteLength, FontRelativeLength, ViewportPercentageLength, CharacterWidth, and PhysicalLength is CSSPixelLength. Besides, we drop NonNegativeAu, and replace computed::NonNegativeLength with NonNegative<computed::Length>. (i.e. NonNegative<CSSPixelLength>)
* Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding functionsXidorn Quan2017-08-311-23/+26
|
* Revert "Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding ↵Emilio Cobos Álvarez2017-08-301-26/+23
| | | | | | functions" This reverts commit 65c2047df21d0a4a6bf70096a51d701bf0dd7eb0.
* Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding functionsXidorn Quan2017-08-301-23/+26
|
* Handle calcs in ScrollSnapPoints conversionsManish Goregaokar2017-08-241-4/+2
|
* Auto merge of #17985 - dadaa:make-list-style-type-animatable, r=hirobors-servo2017-08-071-0/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make list-style-type animatable <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] There are tests for these changes. The test is patch 3 in https://bugzilla.mozilla.org/show_bug.cgi?id=1382137 <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17985) <!-- Reviewable:end -->
| * implement conversion method from Gecko CounterStylePtr to CounterStyleOrNoneDaisuke Akatsuka2017-08-071-0/+30
| |
* | Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and ↵Boris Chiou2017-08-041-2/+12
| | | | | | | | | | | | Filter. MozReview-Commit-ID: Im4KGy1n9IJ
* | Bug 1374233 - Part 7: Add NonNegativeLengthOrPercentage.Boris Chiou2017-08-041-0/+11
| | | | | | | | | | | | For padding-{*} and grid-{*}-gap. MozReview-Commit-ID: 81G0b1k6JnD
* | Bug 1374233 - Part 4: Add NonNegativeLengthOr{Auto|Normal|Number}.Boris Chiou2017-08-041-2/+12
|/ | | | | | | | | | | Add NonNegativeLength, which could be computed to NonNegativeAu. So we can declare Either<NonNegativeLength, X>, X=Auto, Normal, or Number. NonNegativeLengthOrAuto is for column-width. NonNegativeLengthOrNormal is for column-gap. NonNegativeLengthOrNumber is for -moz-tab-size. MozReview-Commit-ID: AfU8XpA1um0
* style: Respect calc for percentages.Emilio Cobos Álvarez2017-07-141-2/+1
|
* implements nsStyleCoord type properties animatableDaisuke Akatsuka2017-07-051-0/+25
|
* style: Assert we never style a root element from another document.Emilio Cobos Álvarez2017-06-211-1/+1
| | | | | | | | | | | | Right now when calling getComputedStyle with an element from another document, we return the style using the pres context of that document, not of the document of the window getComputedStyle was called on, so this holds. But it will stop holding if we ever change this, so assert it doesn't happen. Bug: 1374062 Reviewed-By: Manishearth MozReview-Commit-ID: 3g8yQWWdsen
* Make computed types hold Percentage instead of bare CSSFloatAnthony Ramine2017-06-151-6/+6
|
* Resolve counter style during parallel traversal when possible.Xidorn Quan2017-06-141-3/+5
|
* Introduce #[css(function)] for #[derive(ToCss)]Anthony Ramine2017-06-131-1/+1
| | | | | Any variant with this attribute gets serialised as a CSS function, using the variant name as the function name.
* Add support for symbols() function.Xidorn Quan2017-05-271-7/+22
|
* Merge nsCOMPtr<nsIAtom> into CounterStylePtr.Xidorn Quan2017-05-271-1/+17
|
* Auto merge of #16970 - MaloJaffre:grid_cleanup, r=wafflespeanutbors-servo2017-05-221-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor grid style types and impls Fixes #16949. - [x] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes do not require tests because it's just a refactor <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16970) <!-- Reviewable:end -->
| * Refactor grid style types and implsMalo Jaffré2017-05-211-1/+1
| | | | | | | | Fixes #16949.
* | Rename MinLength to MozLength.Hiroyuki Ikezoe2017-05-211-6/+6
| | | | | | | | So that we can reuse this for non-min-prefixed properties (e.g. width).
* | Combine LengthOrPercentage and Auto into LengthOrPercentageOrAuto for ↵Hiroyuki Ikezoe2017-05-211-14/+4
|/ | | | {Min,Max}Length.
* stylo: Support other unit types in computed angleNazım Can Altınova2017-05-011-6/+7
|
* Make ShapeRadius genericRavi Shankar2017-04-251-8/+7
|
* Rename and move PercentageOrNumber to valuesNazım Can Altınova2017-03-251-2/+35
|
* Add support for MaxLengthEthan Glasser-Camp2017-02-241-1/+20
| | | | This builds on the ExtremumLength type from the previous commit.
* Implement a MinLength typeEthan Glasser-Camp2017-02-231-1/+51
| | | | | | | | | Implement an ExtremumLength type which contains all the enumerated keyword values for min-width, min-height, max-width, and max-height. Then, implement a MinLength which can be used for min-width and min-height. So far this just maps to Gecko values. Refs #13821.
* Auto merge of #15662 - canaltinova:column, r=Manishearthbors-servo2017-02-201-1/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix parsing methods of column-{gap,width} <!-- Please describe your changes on the following line: --> They weren't accepting {normal, auto} keywords. Fixed parsing methods of these properties. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15088 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15662) <!-- Reviewable:end -->
| * Fix parsing methods of column-{gap,width}Nazım Can Altınova2017-02-201-1/+15
| |
* | Add gecko glue for grid <track-size>Ravi Shankar2017-02-201-1/+35
|/
* style: Unbox a bunch of color properties.Emilio Cobos Álvarez2017-02-141-10/+8
| | | | This builds on https://github.com/servo/rust-cssparser/pull/118.
* style: Document the remaining public parts of Gecko's values module.Emilio Cobos Álvarez2017-01-021-3/+7
|
* style: Ditch GeckoStyleCoordHelpers, and implement directly on nsStyleCoord.Emilio Cobos Álvarez2017-01-021-9/+9
|
* Auto merge of #14703 - canaltinova:perspective-transform, r=Wafflespeanutbors-servo2016-12-261-1/+15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add gecko glue for perspective/transform properties <!-- Please describe your changes on the following line: --> To be able to add glue for these properties, we needed to change their structs. They are moved from effects to box and added stylo glue. This PR covers these properties: - perspective - perspective-origin - backface-visibility - transform-box - transform-style - transform-origin --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> - [X] These changes do not require tests because they are stylo changes <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14703) <!-- Reviewable:end -->
| * Add gecko glue for perspective and perspective-origin.Nazım Can Altınova2016-12-231-1/+15
| |
* | style: Update bindings because of bug 1325006Emilio Cobos Álvarez2016-12-251-6/+12
|/
* Convert column-width to use EitherJ. Cliff Dyer2016-12-011-1/+15
| | | | Fixes #14350
* Prefer Either<A, B> for LengthOrNumberRavi Shankar2016-11-181-21/+15
|
* Add impl GeckoStyleCoordConvertible for Either<A, B>Ravi Shankar2016-11-181-0/+16
|
* Move LengthOrNumber to style/values and implement GeckoStyleCoordConvertibleNazım Can Altınova2016-11-061-2/+20
|
* impl GeckoStyleCoordConvertible for AuManish Goregaokar2016-10-091-0/+13
|
* Move gecko_* into style::geckoManish Goregaokar2016-09-241-0/+175
Prepping for the next stage where most of geckolib/ is popped in here