Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Propagate quirks mode all the way to ParserContext | Anthony Ramine | 2017-04-27 | 1 | -2/+3 |
| | | | | The quirks mode is still not properly propagated in geckolib. | ||||
* | Bug 1325878: Pass the MediaList down to Servo, making <style media> work. ↵ | Emilio Cobos Álvarez | 2017-04-12 | 1 | -3/+4 |
| | | | | | | | r=xidorn MozReview-Commit-ID: BUCSQJs2CNI Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io> | ||||
* | Bug 1325878: Support deep-cloning of ServoMediaLists. r=xidorn | Emilio Cobos Álvarez | 2017-04-12 | 1 | -1/+1 |
| | | | | | MozReview-Commit-ID: K7NFe1tKrAZ Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io> | ||||
* | Pass ParserContext down to lengths | J. Ryan Stinnett | 2017-04-12 | 1 | -10/+11 |
| | | | | | | | | | | To make it possible to check the rule type when parsing lengths, we need to pass the `ParserContext` down through many layers to the place where length units are parsed. This change leaves it unused, so it's only to prepare for the next change. MozReview-Commit-ID: 70YwtcCxnWw | ||||
* | Fix a few media query parsing bugs. | Emilio Cobos Álvarez | 2017-04-11 | 1 | -9/+20 |
| | | | | | MozReview-Commit-ID: 6nUd2vA6zO Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io> | ||||
* | style: Fix media query parsing when invalid queries are present. | Emilio Cobos Álvarez | 2017-03-15 | 1 | -10/+2 |
| | |||||
* | Implement MediaList for Stylo. | Xidorn Quan | 2017-03-13 | 1 | -1/+34 |
| | |||||
* | Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness ↵ | Emilio Cobos Álvarez | 2017-01-17 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | manually in the per-doc data. r=heycam The setup is quite different to Servo-land, so add a comment about the different setup. Also, check viewport rules when flushing stylesheets. I believe that the previous behavior is plain wrong, though I haven't taken the time to come up with a test case. In any case, it doesn't hurt any of both back-ends. MozReview-Commit-ID: 46gtTkesOsr Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io> | ||||
* | style: Isolate the soon-to-be style-backend-specific from the media_query ↵ | Emilio Cobos Álvarez | 2017-01-07 | 1 | -156/+70 |
| | | | | module. | ||||
* | Bug 1298588 part 13. Make sure Device has a ComputedValues for stylo. r=bholley | Boris Zbarsky | 2017-01-04 | 1 | -4/+37 |
| | |||||
* | style: Serialize also "only" qualifier, and fix serialization of all media ↵ | Emilio Cobos Álvarez | 2016-12-30 | 1 | -9/+29 |
| | | | | expressions without explicit qualifiers. | ||||
* | style: Simplify media-query parsing so it's easier to split out. | Emilio Cobos Álvarez | 2016-12-30 | 1 | -16/+35 |
| | |||||
* | style: Refactor media query serialization so it doesn't use an intermediate ↵ | Emilio Cobos Álvarez | 2016-12-30 | 1 | -9/+12 |
| | | | | | | buffer. I plan to move MediaType to ToCss soon. | ||||
* | style: Cleanup and refactor how media types are represented. | Emilio Cobos Álvarez | 2016-12-30 | 1 | -18/+27 |
| | | | | | | This is necessary for the upcoming work in Stylo, given I plan to make MediaType different for Servo and Gecko, and the Unknown variant doesn't fit in MediaType to be fair, the device is never going to have any unknown media type. | ||||
* | style: Add a way to update an empty stylesheet for @import. | Emilio Cobos Álvarez | 2016-12-16 | 1 | -0/+4 |
| | | | | | We'll update the empty stylesheet we've created when instantiating the ImportRule when the stylesheet finishes loading. | ||||
* | style: Simplify some code in media_queries.rs | Emilio Cobos Álvarez | 2016-12-16 | 1 | -15/+17 |
| | |||||
* | Implement MediaList interface | Nazım Can Altınova | 2016-12-02 | 1 | -2/+2 |
| | |||||
* | implement support for the width media query | Gregory | 2016-11-26 | 1 | -6/+10 |
| | | | | | | | | | | | | | | failing test for correct to_css of "width" separate test for mq and to_css implement css serialization for Eq remove PASS test expectation remove FIXME simplify serialization | ||||
* | style: Refactor and add infrastructure for font metrics in style. | Emilio Cobos Álvarez | 2016-11-13 | 1 | -21/+4 |
| | | | | | | | | | | | This commit itself only moves things around and adds an extra parameter to the `apply_declarations` function to eventually handle #14079 correctly. Probably needs a more granular API to query fonts, á la nsFontMetrics, but that's trivial to do once this is landed. Then we should make the font provider mandatory, and implement the missing stylo bits. | ||||
* | Allow empty media query list | Xidorn Quan | 2016-11-10 | 1 | -7/+13 |
| | | | | | | | And make empty list the default value of MediaList. This commit also removes Option wrapper of Stylesheet.media because a stylesheet should always have an associated media query list. | ||||
* | Rename media_queries::MediaQueryList to MediaList | Xidorn Quan | 2016-11-08 | 1 | -5/+5 |
| | |||||
* | Prefer Servo-specific ToCss for all types | Ravi Shankar | 2016-11-07 | 1 | -2/+2 |
| | |||||
* | Update to string-cache 0.3 | Simon Sapin | 2016-11-03 | 1 | -1/+1 |
| | |||||
* | Implement matchMedia and MediaQueryList | Jack Moffitt | 2016-11-02 | 1 | -7/+56 |
| | | | | Fixes #13376. | ||||
* | style: Don't incorrectly clamp values in calc that might not be only lengths. | Emilio Cobos Álvarez | 2016-09-01 | 1 | -5/+6 |
| | | | | | | | Expressions with percentages may be negative or positive at computed value time. So, we can only clamp lengths at computed value time, which is what the other browsers do. | ||||
* | style: Allow calc in media queries. | Emilio Cobos Álvarez | 2016-08-30 | 1 | -9/+14 |
| | |||||
* | Update to euclid 0.8 | Martin Robinson | 2016-08-12 | 1 | -4/+4 |
| | |||||
* | Move some unit type definitions to style_traits. | Ms2ger | 2016-07-11 | 1 | -1/+1 |
| | |||||
* | Add some documentation to the style crate. | Ms2ger | 2016-06-27 | 1 | -0/+4 |
| | |||||
* | Make the style crate almost build on stable Rust. | Simon Sapin | 2016-06-22 | 1 | -8/+16 |
| | | | | `discriminant_value` will need to be replaced with something else later. | ||||
* | Removed unused imports | Per Lundberg | 2016-05-15 | 1 | -1/+0 |
| | | | | This fixes #11185. | ||||
* | style: Support lazy pseudo-elements | Emilio Cobos Álvarez | 2016-05-03 | 1 | -2/+8 |
| | | | | | | | | These can't be supported in Servo as of right now, because I'm not totally sure the accesses that should be done in layout would be thread-safe. It can be revisited later though. | ||||
* | Say farewell to in-tree HeapSizeOf | Anthony Ramine | 2016-02-04 | 1 | -1/+0 |
| | |||||
* | Update cssparser. | Simon Sapin | 2016-01-21 | 1 | -2/+2 |
| | | | | https://github.com/servo/rust-cssparser/pull/91 | ||||
* | Derive HeapSizeOf on more Stylesheet-related types | Till Schneidereit | 2015-11-07 | 1 | -8/+9 |
| | | | | In preparation of storing `Stylesheet`s on nodes. | ||||
* | Split Au type into separate crate, with minimal dependencies. | Glenn Watson | 2015-10-01 | 1 | -1/+2 |
| | |||||
* | sorted the extern crate, mod & use declarations | Ravi Shankar | 2015-09-24 | 1 | -1/+1 |
| | |||||
* | Fix reported test-tidy errors for unmerged import blocks | Brandon Fairchild | 2015-09-19 | 1 | -2/+1 |
| | | | | This merges import blocks that were reported by tidy as unmerged. | ||||
* | Improve style in properties.mako.rs | Manish Goregaokar | 2015-09-04 | 1 | -2/+2 |
| | |||||
* | Various fixes in style | Manish Goregaokar | 2015-09-03 | 1 | -4/+4 |
| | |||||
* | sort all uses | Johann Tuffe | 2015-08-20 | 1 | -1/+1 |
| | |||||
* | Use euclid from crates.io | ecoal95 | 2015-06-19 | 1 | -1/+1 |
| | |||||
* | rust-geom API changes | Corey Farwell | 2015-06-13 | 1 | -2/+2 |
| | | | | https://github.com/servo/rust-geom/pull/81 | ||||
* | Rename Au methods with f32/f64 instead of frac32/frac/subpx | Simon Sapin | 2015-05-05 | 1 | -2/+2 |
| | |||||
* | Implement Clone for Copy types. | Ms2ger | 2015-04-28 | 1 | -5/+5 |
| | |||||
* | Add links to the spec for components/style | Corey Farwell | 2015-04-17 | 1 | -1/+5 |
| | |||||
* | Remove now-empty module. | Simon Sapin | 2015-04-08 | 1 | -5/+0 |
| | |||||
* | Move style crate unit tests into the unit_tests crate. | Simon Sapin | 2015-04-08 | 1 | -414/+4 |
| | |||||
* | Remove allow(missing_copy_implementations) attributes. | Ms2ger | 2015-03-23 | 1 | -1/+0 |
| | | | | This is now the default. | ||||
* | Implement viewport percentage length units ('vw', 'vh', 'vmin', 'vmax') | James Gilbertson | 2015-03-05 | 1 | -0/+2 |
| |