aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/style
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix deriving in cascade_with_cached_declarationsMatt Brubeck2014-06-041-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 Sapin2014-05-291-1/+7
|
* auto merge of #2478 : SimonSapin/servo/style-getters, r=metajackbors-servo2014-05-281-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 Sapin2014-05-231-18/+31
| |
| * Un-disable and fix some warnings in the style crate.Simon Sapin2014-05-231-18/+26
| |
| * Make ComputedStyle fields private and add getters.Simon Sapin2014-05-231-35/+43
| | | | | | | | This isolates layout code from upcoming refactoring in properties.rs.mako.
* | auto merge of #2445 : SimonSapin/servo/css-warnings, r=jdmbors-servo2014-05-261-9/+13
|\ \ | | | | | | | | | This is on top of the #2433 Rust upgrade.
| * | Optimize CSS error logging: check log level before task-local silencing.Simon Sapin2014-05-231-3/+7
| | |
| * | Remove a workaround for a Rust bug.Simon Sapin2014-05-231-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 Sapin2014-05-231-1/+4
| |/ | | | | | | Fix #2083. Change the log level of CSS errors from error to info.
* / Remove the workaround for Rust issue 10683.Cameron Zwarich2014-05-234-34/+11
|/
* Update Rust.Ms2ger2014-05-229-57/+56
|
* Double border supportBryan Bell2014-05-211-2/+1
|
* Refactor groove & ridge border support, add inset & outset border supportBryan Bell2014-05-201-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 Bell2014-05-201-2/+2
|
* Add a fast path in the cascade for anonymous boxes.Simon Sapin2014-05-162-1/+32
|
* Keep initial values in a lazy static instead of passing a parameter around.Simon Sapin2014-05-162-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 Sapin2014-05-081-1/+3
|
* Fix iteration order for building computed values’ "context"Simon Sapin2014-05-081-1/+9
|
* Try random whitespace changes to maybe fix an issue that I can not reproduce.Simon Sapin2014-05-081-3/+4
|
* Fix computed value of 'display' when no declaration applies.Simon Sapin2014-05-071-0/+5
|
* Set the border-*-width computed values to 0 as appropriate. Fix #2288Simon Sapin2014-05-071-0/+10
|
* Parse declarations in reverse order, skip those that would be overridden.Simon Sapin2014-05-071-44/+78
|
* Cascade declarations in reverse order, skipping those already seenSimon Sapin2014-05-071-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 Sapin2014-05-061-2/+2
|
* Use Vec for SelectorMap fields.Ms2ger2014-05-051-28/+28
|
* Changes based on reviewMatt Murphy2014-05-042-6/+6
|
* Convert Vec::new() to vec!()Matt Murphy2014-05-045-13/+13
|
* ~[] to Vec in style/selectors.rsMatt Murphy2014-05-041-30/+30
|
* ~[] to Vec in style/properties.rs.mako and selector_matching.rsMatt Murphy2014-05-042-10/+10
|
* ~[] to Vec in main/compositing and associated filesMatt Murphy2014-05-041-22/+22
|
* ~[] to Vec in style/media_quieres.rs, selectors.rs, stylesheets.rsMatt Murphy2014-05-043-16/+17
|
* ~[] to Vec in FontStyle and FontGroupMatt Murphy2014-05-041-4/+4
|
* Call find_equiv to avoid allocation strings.Ms2ger2014-05-041-3/+3
|
* Replace most ~"string"s with "string".to_owned().Ms2ger2014-05-042-20/+20
|
* layout: Re-enable parallel layout by removing all `RefCell` instancesPatrick Walton2014-05-022-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.rsManish Goregaokar2014-05-011-1/+1
|
* Make ProgressMsg use Vec.Ms2ger2014-04-281-2/+2
|
* This batch of changes upgrades Servo to work with the Rust upgrade as ofLars Bergstrom2014-04-279-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 Sapin2014-04-171-51/+40
|
* Fix some private type in public signature warnings.Josh Matthews2014-04-163-7/+11
|
* auto merge of #2085 : lpy/servo/issue2079, r=jdmbors-servo2014-04-111-1/+1
|\ | | | | | | see #2079
| * Replace @s with Rc types.(fixes #2079)lpy2014-04-121-1/+1
| |
* | Android fixes for February Rust UpgradeLars Bergstrom2014-04-101-0/+2
|/
* Remove trailing whitespace.Ms2ger2014-04-072-2/+2
|
* auto merge of #2042 : SimonSapin/servo/silence-ua-stylesheet, r=jdmbors-servo2014-04-041-2/+5
|\ | | | | | | r? @Ms2ger
| * Fix the silencing of CSS errors in the UA stylesheet.Simon Sapin2014-04-041-2/+5
| |
* | Fix tests.Josh Matthews2014-04-041-11/+11
| |
* | Upgrade rust.Ms2ger2014-04-045-7/+11
|/
* auto merge of #1971 : Constellation/servo/quick-fail-selector-matching, ↵bors-servo2014-04-041-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".