aboutsummaryrefslogtreecommitdiffstats
path: root/components/style
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #11834 - servo:style-docs, r=SimonSapinbors-servo2016-06-2721-21/+123
|\ | | | | | | | | | | | | | | Add some documentation to the style crate. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11834) <!-- Reviewable:end -->
| * Add some documentation to the style crate.Ms2ger2016-06-2721-21/+123
| |
* | Update Rust to 1.11.0-nightly (ad7fe6521 2016-06-23)Anthony Ramine2016-06-271-4/+4
| | | | | | | | | | I also properly bump any dependency related to the serde_macros removal from webrender_traits
* | Clean up codeMichael Howell2016-06-251-2/+2
| | | | | | | | :grin:
* | Auto merge of #11833 - Ms2ger:LocalToCss, r=jdmbors-servo2016-06-239-39/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | Merge AuExtensionMethods and LocalToCss. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11833) <!-- Reviewable:end -->
| * | Merge AuExtensionMethods and LocalToCss.Ms2ger2016-06-239-39/+30
| |/
* | Auto merge of #11835 - servo:diy-as-unsafe-cell, r=noxbors-servo2016-06-233-1/+465
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use our copy of RefCell for style data <!-- Please describe your changes on the following line: --> This allows removing `#![feature(as_unsafe_cell)]` in geckolib and make progress towards #11815. --- <!-- 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 part of #11815. <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require new tests because they don’t introduce no functional 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11835) <!-- Reviewable:end -->
| * Add commit hash to be reverted in FIXME comment.Simon Sapin2016-06-231-4/+6
| |
| * Use our copy of RefCell for style data.Simon Sapin2016-06-233-1/+463
| | | | | | | | | | This allows removing `#![feature(as_unsafe_cell)]` in geckolib and make progress towards #11815.
* | Make the STYLE_BLOOM global private.Ms2ger2016-06-231-4/+35
|/
* Remove some usage of unstable features in geckolibSimon Sapin2016-06-221-1/+5
|
* Change style_traits to a single "servo" Cargo featureSimon Sapin2016-06-221-1/+1
| | | | ... instead of fine-grained heap_size and serde-serialization ones.
* Make the style crate almost build on stable Rust.Simon Sapin2016-06-2235-207/+356
| | | | `discriminant_value` will need to be replaced with something else later.
* Make it possible to build the style_traits crate with a stable compiler.Simon Sapin2016-06-223-4/+5
| | | | Testing this on CI to make sure we don’t regress it is blocked on #11806
* Update string_cache to v0.2.20Keith Yeung2016-06-201-1/+1
|
* stylo: Support the rest of the background-xxx P1 properties.Emilio Cobos Álvarez2016-06-151-1/+1
| | | | | We do the same that with background-{image, repeat}, we just use the first element until servo can parse and use a list efficiently.
* Move the initialize_data method out of the TNode trait.Ms2ger2016-06-131-6/+0
| | | | This reduces the dependency of TNode implementations on layout types.
* Move the TNode::initialize_data() call from recalc_style_at to its callers.Ms2ger2016-06-131-6/+0
| | | | This will allow us to make it an inherent method.
* Don't load all font faces sourcesAnthony Ramine2016-06-101-12/+12
| | | | We stop at the first one we manage to load.
* Auto merge of #11565 - nox:fonts, r=metajackbors-servo2016-06-071-0/+32
|\ | | | | | | | | | | | | | | Introduce FontFaceRules::effective_sources() <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11565) <!-- Reviewable:end -->
| * Introduce FontFaceRules::effective_sources()Anthony Ramine2016-06-061-0/+32
| | | | | | | | This avoids downloading fonts in formats we don't support.
* | Auto merge of #11572 - nox:placeholder-shown, r=SimonSapinbors-servo2016-06-062-2/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | Implement :placeholder-shown (fixes #10561) <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11572) <!-- Reviewable:end -->
| * | Implement :placeholder-shown (fixes #10561)Anthony Ramine2016-06-032-2/+7
| |/
* | Move LengthOrPercentageOrAuto to style::attr.Ms2ger2016-06-061-2/+9
| |
* | Deny unsafe code in some more modules.Ms2ger2016-06-041-3/+0
|/
* Stop mapping overflow-wrap to mWordWrap.Bobby Holley2016-06-011-2/+1
| | | | This was fixed in gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=955857
* stylo: Support linear-gradients as background-imageEmilio Cobos Álvarez2016-06-011-0/+1
|
* Auto merge of #11445 - mbrubeck:line-height, r=emiliobors-servo2016-06-011-0/+20
|\ | | | | | | | | | | | | | | | | | | | | Support line-height in geckolib r? @bholley <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11445) <!-- Reviewable:end -->
| * Support line-height in geckolibMatt Brubeck2016-05-261-0/+20
| |
* | Auto merge of #11417 - stshine:flex-longhand-properties, r=mbrubeckbors-servo2016-05-312-4/+50
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support remaining longhand flexbox style properties for servo - [x] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [X] There are tests for these changes Add the remaining longhand CSS properties of flexbox for servo, including `flex-wrap`, `flex-grow`, `flex-shrink`, `justify-content`, `align-items`, `align-self` and `align-content`. Tests for the remaining longhand properties are also enabled. Test for default value of `align-self` is modified because the new default value for this property is "auto" is current flexbox CR. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11417) <!-- Reviewable:end -->
| * | Fixup for `align-self` and testsPu Xingyu2016-06-012-8/+46
| | | | | | | | | | | | | | | | | | This is a fixup for `align-self`, the computed value of which should now properly inherit `align-items` value of its parent. Additional passed tests is also removed from ini folder. Fixup for geckolib errors.
| * | Add remaining longhand flexbox style propertiesPu Xingyu2016-05-251-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the remaining longhand CSS properties of flexbox for servo, including `flex-wrap`, `flex-grow`, `flex-shrink`, `justify-content`, `align-items`, `align-self` and `align-content`. tests for the remaining longhand properties are also enabled. Test for default value of `align-self` is modified because the new default value for this property is "auto" is current flexbox CR.
* | | Allow either comma or space seperated css rect()Mitchell Hentges2016-05-301-17/+31
| | |
* | | Remove empty lines following braces.Josh Matthews2016-05-272-3/+0
| | |
* | | Report use statements that use {} with only one entryCullen Rhodes2016-05-272-3/+3
| |/ |/|
* | Auto merge of #11412 - heycam:text-deco, r=mbrubeckbors-servo2016-05-253-18/+75
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support remaining text-decoration related properties in geckolib 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 --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because mostly it's geckolib-only, and the servo-relevant changes should be covered by existing tests Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. ---- Not sure if there's a better way to do the loop in the text-decoration(-line) longhand parsing, having all of the guts in the loop condition is a bit awkward. r? @mbrubeck <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11412) <!-- Reviewable:end -->
| * | Support text-decoration-line and the text-decoration shorthand in geckolib.Cameron McCormack2016-05-263-5/+54
| | |
| * | Don't consume invalid idents when parsing text-decoration.Cameron McCormack2016-05-261-12/+20
| | |
| * | Make text-decoration-style initial value 'solid'.Cameron McCormack2016-05-251-1/+1
| | |
* | | Auto merge of #11427 - mbrubeck:under-display-none, r=pcwaltonbors-servo2016-05-252-0/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop generating flows under display: none. Because this is a bottom-up traversal it can generates flows and throw them away. To prevent that, this cascades an internal `-servo-under-display-none` property and then checks that during flow construction. Fixes #1536. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11427) <!-- Reviewable:end -->
| * | | Stop generating flows under display: none.Matt Brubeck2016-05-252-0/+38
| | | | | | | | | | | | | | | | Because this is a bottom-up traversal it can generates flows and throw them away. To prevent that, this cascades an internal `-servo-under-display-none` property and then checks that during flow construction. Fixes #1536.
* | | | Auto merge of #11399 - heycam:parent-style, r=pcwaltonbors-servo2016-05-251-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Look past restyle root for parent node when restyling. 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 --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because existing tests should be sufficient Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. ---- Currently when traversing a the tree to restyle, we look at whether a given element to restyle is the root. This seems to always be the root of the entire document, since we start our processing from the top. If the current element being restyled is the root of the restyle, then we use None as the parent node for restyling purposes. In stylo we want to invoke restyling starting from an arbitrary node in the document, not just the root of the document, so this change looks for the parent element regardless of whether we're at the root of the restyle. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11399) <!-- Reviewable:end -->
| * | | | Look past restyle root for parent node when restyling.Cameron McCormack2016-05-251-1/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently when traversing a the tree to restyle, we look at whether a given element to restyle is the root. This seems to always be the root of the entire document, since we start our processing from the top. If the current element being restyled is the root of the restyle, then we use None as the parent node for restyling purposes. In stylo we want to invoke restyling starting from an arbitrary node in the document, not just the root of the document, so this change looks for the parent element regardless of whether we're at the root of the restyle.
* | | | Auto merge of #11401 - heycam:moz-box, r=mbrubeckbors-servo2016-05-251-0/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support display:-moz-(inline-)box in geckolib. 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 --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR - [X] These changes do not require tests because they are geckolib-only changes Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. r? @mbrubeck <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11401) <!-- Reviewable:end -->
| * | | Support display:-moz-(inline-)box in geckolib.Cameron McCormack2016-05-251-0/+2
| |/ /
* | | Auto merge of #11376 - creativcoder:update-string-cache, r=noxbors-servo2016-05-251-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump string-cache to 0.2.18 - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [X] These changes do not require tests because its a crate version bump. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11376) <!-- Reviewable:end -->
| * | Bump string-cache to 0.2.18Rahul Sharma2016-05-251-1/+1
| |/
* | Removing unnecessary field from serialization css enumDavid Raifaizen2016-05-251-8/+5
| |
* | Changing update_inline_style to process multiple declarations at once to ↵David Raifaizen2016-05-251-61/+103
| | | | | | | | handle shorthand serialization better
* | Fixing python to_css codegen errorDavid Raifaizen2016-05-251-7/+7
| |