Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix deriving in cascade_with_cached_declarations | Matt Brubeck | 2014-06-04 | 1 | -23/+27 | |
| | | | | | | | Even though we don't recompute non-inherited properties here, we still need to compute properties that are derived from them. Fixes #2498: because text-decoration is not inherited, -servo-text-decorations-in-effect was not derived correctly for cached declarations. | |||||
* | Add the 'direction' property and fix one RTL layout corner case. | Simon Sapin | 2014-05-29 | 1 | -1/+7 | |
| | ||||||
* | auto merge of #2478 : SimonSapin/servo/style-getters, r=metajack | bors-servo | 2014-05-28 | 1 | -61/+90 | |
|\ | | | | | | | This isolates layout code from upcoming refactoring in properties.rs.mako. | |||||
| * | Remove CowArc and use the new Arc::make_unique() method instead. | Simon Sapin | 2014-05-23 | 1 | -18/+31 | |
| | | ||||||
| * | Un-disable and fix some warnings in the style crate. | Simon Sapin | 2014-05-23 | 1 | -18/+26 | |
| | | ||||||
| * | Make ComputedStyle fields private and add getters. | Simon Sapin | 2014-05-23 | 1 | -35/+43 | |
| | | | | | | | | This isolates layout code from upcoming refactoring in properties.rs.mako. | |||||
* | | auto merge of #2445 : SimonSapin/servo/css-warnings, r=jdm | bors-servo | 2014-05-26 | 1 | -9/+13 | |
|\ \ | | | | | | | | | | This is on top of the #2433 Rust upgrade. | |||||
| * | | Optimize CSS error logging: check log level before task-local silencing. | Simon Sapin | 2014-05-23 | 1 | -3/+7 | |
| | | | ||||||
| * | | Remove a workaround for a Rust bug. | Simon Sapin | 2014-05-23 | 1 | -6/+3 | |
| | | | | | | | | | | | | We’ve upgraded to a Rust version that fixed mozilla/rust#13322. | |||||
| * | | Do not log CSS parse errors to stderr by default. | Simon Sapin | 2014-05-23 | 1 | -1/+4 | |
| |/ | | | | | | | Fix #2083. Change the log level of CSS errors from error to info. | |||||
* / | Remove the workaround for Rust issue 10683. | Cameron Zwarich | 2014-05-23 | 4 | -34/+11 | |
|/ | ||||||
* | Update Rust. | Ms2ger | 2014-05-22 | 9 | -57/+56 | |
| | ||||||
* | Double border support | Bryan Bell | 2014-05-21 | 1 | -2/+1 | |
| | ||||||
* | Refactor groove & ridge border support, add inset & outset border support | Bryan Bell | 2014-05-20 | 1 | -2/+2 | |
| | | | | | Significant cleanup of border support, adds inset & outset border code. Border rendering matches Chrome's border rendering. | |||||
* | Add groove and ridge border support. | Bryan Bell | 2014-05-20 | 1 | -2/+2 | |
| | ||||||
* | Add a fast path in the cascade for anonymous boxes. | Simon Sapin | 2014-05-16 | 2 | -1/+32 | |
| | ||||||
* | Keep initial values in a lazy static instead of passing a parameter around. | Simon Sapin | 2014-05-16 | 2 | -11/+13 | |
| | | | | Thanks to @Kimundi for https://gist.github.com/Kimundi/8782487 | |||||
* | This should not make any difference AFAICT, but seems to fix some layout bugs. | Simon Sapin | 2014-05-08 | 1 | -1/+3 | |
| | ||||||
* | Fix iteration order for building computed values’ "context" | Simon Sapin | 2014-05-08 | 1 | -1/+9 | |
| | ||||||
* | Try random whitespace changes to maybe fix an issue that I can not reproduce. | Simon Sapin | 2014-05-08 | 1 | -3/+4 | |
| | ||||||
* | Fix computed value of 'display' when no declaration applies. | Simon Sapin | 2014-05-07 | 1 | -0/+5 | |
| | ||||||
* | Set the border-*-width computed values to 0 as appropriate. Fix #2288 | Simon Sapin | 2014-05-07 | 1 | -0/+10 | |
| | ||||||
* | Parse declarations in reverse order, skip those that would be overridden. | Simon Sapin | 2014-05-07 | 1 | -44/+78 | |
| | ||||||
* | Cascade declarations in reverse order, skipping those already seen | Simon Sapin | 2014-05-07 | 1 | -5/+63 | |
| | | | | | | | | | Previously we processed them in forward order, latter dcelarations for the same property overriding any earlier one, making the work of converting the earlier ones to a computed value redundant. Maintaining a bit field of "seen" properties will also help fixing #2288. | |||||
* | Make a comment more precise about derived properties. | Simon Sapin | 2014-05-06 | 1 | -2/+2 | |
| | ||||||
* | Use Vec for SelectorMap fields. | Ms2ger | 2014-05-05 | 1 | -28/+28 | |
| | ||||||
* | Changes based on review | Matt Murphy | 2014-05-04 | 2 | -6/+6 | |
| | ||||||
* | Convert Vec::new() to vec!() | Matt Murphy | 2014-05-04 | 5 | -13/+13 | |
| | ||||||
* | ~[] to Vec in style/selectors.rs | Matt Murphy | 2014-05-04 | 1 | -30/+30 | |
| | ||||||
* | ~[] to Vec in style/properties.rs.mako and selector_matching.rs | Matt Murphy | 2014-05-04 | 2 | -10/+10 | |
| | ||||||
* | ~[] to Vec in main/compositing and associated files | Matt Murphy | 2014-05-04 | 1 | -22/+22 | |
| | ||||||
* | ~[] to Vec in style/media_quieres.rs, selectors.rs, stylesheets.rs | Matt Murphy | 2014-05-04 | 3 | -16/+17 | |
| | ||||||
* | ~[] to Vec in FontStyle and FontGroup | Matt Murphy | 2014-05-04 | 1 | -4/+4 | |
| | ||||||
* | Call find_equiv to avoid allocation strings. | Ms2ger | 2014-05-04 | 1 | -3/+3 | |
| | ||||||
* | Replace most ~"string"s with "string".to_owned(). | Ms2ger | 2014-05-04 | 2 | -20/+20 | |
| | ||||||
* | layout: Re-enable parallel layout by removing all `RefCell` instances | Patrick Walton | 2014-05-02 | 2 | -11/+109 | |
| | | | | | | | | | | | | | from `Flow`s; in the process, remove `InlineInfo` in favor of the range-based design that was originally planned and halfway implemented. Now, the DOM tree structure for inline flows is reflected not by a series of arrays but instead by a flat list of ranges into the list of boxes. As part of this, the `border` and `padding` fields, which were incorrect in the case of inlines and necessitated separate `noncontent_inline_foo` methods, have been merged into a single `border_padding` field that is always guaranteed to be correct after width assignment, even for inlines. | |||||
* | Use new attributes syntax in properties.rs | Manish Goregaokar | 2014-05-01 | 1 | -1/+1 | |
| | ||||||
* | Make ProgressMsg use Vec. | Ms2ger | 2014-04-28 | 1 | -2/+2 | |
| | ||||||
* | This batch of changes upgrades Servo to work with the Rust upgrade as of | Lars Bergstrom | 2014-04-27 | 9 | -72/+73 | |
| | | | | | | April 10, 2014. The main changes are to privacy, to work around the issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the various API changes strewn throughout the libraries. | |||||
* | Use to_ascii_lower() and eq_ignore_ascii_case() instead of unsafe code. | Simon Sapin | 2014-04-17 | 1 | -51/+40 | |
| | ||||||
* | Fix some private type in public signature warnings. | Josh Matthews | 2014-04-16 | 3 | -7/+11 | |
| | ||||||
* | auto merge of #2085 : lpy/servo/issue2079, r=jdm | bors-servo | 2014-04-11 | 1 | -1/+1 | |
|\ | | | | | | | see #2079 | |||||
| * | Replace @s with Rc types.(fixes #2079) | lpy | 2014-04-12 | 1 | -1/+1 | |
| | | ||||||
* | | Android fixes for February Rust Upgrade | Lars Bergstrom | 2014-04-10 | 1 | -0/+2 | |
|/ | ||||||
* | Remove trailing whitespace. | Ms2ger | 2014-04-07 | 2 | -2/+2 | |
| | ||||||
* | auto merge of #2042 : SimonSapin/servo/silence-ua-stylesheet, r=jdm | bors-servo | 2014-04-04 | 1 | -2/+5 | |
|\ | | | | | | | r? @Ms2ger | |||||
| * | Fix the silencing of CSS errors in the UA stylesheet. | Simon Sapin | 2014-04-04 | 1 | -2/+5 | |
| | | ||||||
* | | Fix tests. | Josh Matthews | 2014-04-04 | 1 | -11/+11 | |
| | | ||||||
* | | Upgrade rust. | Ms2ger | 2014-04-04 | 5 | -7/+11 | |
|/ | ||||||
* | auto merge of #1971 : Constellation/servo/quick-fail-selector-matching, ↵ | bors-servo | 2014-04-04 | 1 | -12/+96 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=SimonSapin Restart selector matching from an appropriate selector Introducing 3 matching failure statuses, + NotMatchedGlobally + NotMatchedAndRestartFromClosestDescendant + NotMatchedAndRestartFromClosestLaterSibling When NotMatchedGlobally appears, stop selector matching completely since the succeeding selector never matches. It is raised when + Child selector cannot find the candidate element + Descendant selector cannot find the candidate element When NotMatchedAndRestartFromClosestDescendant appears, the selector matching does backtracking and restarts from the closest Descendant selector. It is raised when + NextSibling selector cannot find the candidate element. + LaterSibling selector cannot find the candidate element. + Child selector doesn't match on the found element. When NotMatchedAndRestartFromClosestLaterSibling appears, the selector matching does backtracking and restarts from the closest LaterSibling selector. It is raised when + NextSibling selector doesn't match on the found element. For example, when the selector "d1 d2 a" is provided and we cannot *find* an appropriate ancestor node for "d1", this selector matching raises NotMatchedGlobally since even if "d2" is moved to more upper node, the candidates for "d1" becomes less than before and d1 . The next example is siblings. When the selector "b1 + b2 ~ d1 a" is providied and we cannot *find* an appropriate brother node for b1, the selector matching raises NotMatchedAndRestartFromClosestDescendant. The selectors ("b1 + b2 ~") doesn't match and matching restart from "d1". The additional example is child and sibling. When the selector "b1 + c1 > b2 ~ d1 a" is provided and the selector "b1" doesn't match on the element, this "b1" raises NotMatchedAndRestartFromClosestLaterSibling. However since the selector "c1" raises NotMatchedAndRestartFromClosestDescendant. So the selector "b1 + c1 > b2 ~ " doesn't match and restart matching from "d1". |