aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fix visibility warnings in main crate (#2044)Manish Goregaokar2014-04-066-13/+13
|
* make attr getters/setters case insensitive (#1962)Manish Goregaokar2014-04-051-5/+16
|
* auto merge of #2032 : brunoabinader/servo/html-whitespace, r=Ms2gerbors-servo2014-04-054-6/+39
|\ | | | | | | | | | | | | | | | | | | Specs: http://dom.spec.whatwg.org/#concept-ordered-set-parser http://encoding.spec.whatwg.org/#ascii-whitespace This PR implements the HTMLSpaceCharSplits iterator, used to split a string in a subset of strings separated by valid HTML space characters. Its first usage is upon splitting ```class``` attribute values. Closes #1840.
| * Added HTML space characters check content testBruno de Oliveira Abinader2014-04-041-0/+27
| |
| * Split class names using split_html_space_chars helper functionBruno de Oliveira Abinader2014-04-042-5/+4
| |
| * Implement split_html_space_chars helper functionBruno de Oliveira Abinader2014-04-041-1/+8
| |
* | auto merge of #2038 : SimonSapin/servo/min-height-collapse, r=pcwaltonbors-servo2014-04-041-2/+11
|\ \ | | | | | | | | | | | | | | | [Relevant spec](http://dev.w3.org/csswg/css2/box.html#collapsing-margins): > top and bottom margins of a box that does not establish a new block formatting context and that has zero computed 'min-height', zero or 'auto' computed 'height', and no in-flow children
| * | 'min-height' can prevent margin collapsing through an element, like 'height'Simon Sapin2014-04-041-2/+11
| | |
* | | 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
| |/ /
* | | auto merge of #1994 : hyunjunekim/servo/try, r=jdmbors-servo2014-04-043-0/+7
|\ \ \ | | | | | | | | | | | | #1991
| * | | documnet locationhyunjunekim2014-04-043-0/+7
| | |/ | |/|
* | | Fix tests.Josh Matthews2014-04-0411-35/+38
| | |
* | | Update to merged commits in submodules.Ms2ger2014-04-0411-0/+0
| | |
* | | Address review comments.Ms2ger2014-04-049-12/+19
| | |
* | | Upgrade rust.Ms2ger2014-04-04102-816/+701
| |/ |/|
* | 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".
| * Restart selector matching from an appropriate compound selectorYusuke Suzuki2014-04-051-12/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introducing 3 matching failure statuses, NotMatchedAndRestartFromClosestLaterSibling NotMatchedAndRestartFromClosestDescendant NotMatchedGlobally When NotMatchedGlobally appears, stop selector matching completely since the succeeding selector never matches. It is raised when Child combinator cannot find the candidate element Descendant combinator cannot find the candidate element When NotMatchedAndRestartFromClosestDescendant appears, the selector matching does backtracking and restarts from the closest Descendant combinator. It is raised when NextSibling combinator cannot find the candidate element. LaterSibling combinator cannot find the candidate element. Child combinator doesn't match on the found element. When NotMatchedAndRestartFromClosestLaterSibling appears, the selector matching does backtracking and restarts from the closest LaterSibling combinator. It is raised when NextSibling combinator 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".
* | Disable parallel layoutLars Bergstrom2014-04-031-3/+3
| |
* | Computed value of 'height: <percentage>' is 'auto' in some cases.Simon Sapin2014-04-032-3/+25
| | | | | | | | | | | | | | | | | | See http://dev.w3.org/csswg/css2/visudet.html#propdef-height This is necessary but not sufficient for #2029. A bug fix in the previous commit "broke" Acid 2 because that bug was hiding this one. This makes Acid 2 pass again.
* | Adress more #1988 (Acid 2) review comments.Simon Sapin2014-04-032-17/+22
| |
* | layout: Address review comments for `min-height` and `max-height`Patrick Walton2014-04-031-33/+29
| | | | | | | | computation
* | layout: Address some more review commentsPatrick Walton2014-04-032-23/+28
| |
* | layout: Fix percentages in relatively positioned elementsPatrick Walton2014-04-034-11/+12
| |
* | test: Fix some reftests.Patrick Walton2014-04-035-13/+22
| |
* | layout: Address review feedback.Patrick Walton2014-04-0325-302/+295
| |
* | support: Update submodules.Patrick Walton2014-04-031-0/+0
| |
* | test: Add many reftests for parts of Acid2.Patrick Walton2014-04-0324-3/+446
| |
* | layout: Implement pseudo-elements.Hyun June Kim2014-04-035-172/+428
| |
* | layout: Implement enough of automatic table layout to pass Acid2.Junyoung Cho2014-04-039-551/+570
| |
* | layout: Rewrite the margin collapse code to work with negative margins.Patrick Walton2014-04-034-482/+592
| |
* | layout: Implement `-servo-minimum-line-height`Patrick Walton2014-04-031-15/+4
| |
* | layout: Support multiple boxes per node; don't store fixed/absolutePatrick Walton2014-04-034-102/+84
| | | | | | | | descendant links separately
* | layout: Update `parallel.rs` to use `OpaqueNodeMethods`Patrick Walton2014-04-031-3/+6
| |
* | layout: Take padding into account for inline boxesPatrick Walton2014-04-034-110/+153
| |
* | layout: Take `min-height` and `max-height` into accountPatrick Walton2014-04-031-27/+156
| |
* | servo: Implement stacking contexts and allow multiple layers perPatrick Walton2014-04-0320-1133/+1717
| | | | | | | | pipeline. This handles fixed positioning mostly correctly.
* | util: Add a `rect_contains_point` utility methodPatrick Walton2014-04-031-0/+8
| |
* | util: Add some utility methods to `SmallVec`.Patrick Walton2014-04-031-0/+28
| |
* | style: Parse `background-position` and `background-attachment`.Patrick Walton2014-04-031-6/+131
| |
* | style: Implement `-servo-minimum-line-height`, a derived property fromPatrick Walton2014-04-032-46/+134
| | | | | | | | | | | | | | | | `line-height`, and the infrastructure needed for derived properties to work. Eventually I would like this to be used for text decorations, like WebKit does with `-webkit-text-decorations-in-effect`.
* | style: Parse `min-height` and `max-height`Patrick Walton2014-04-031-0/+7
| |
* | Document::create_collection's callback should return a boolean instead of a ↵Tetsuharu OHZEKI2014-04-041-15/+5
| | | | | | | | node. (#2027)
* | auto merge of #2022 : lpy/servo/issue2019, r=jdmbors-servo2014-04-013-40/+24
|\ \ | | | | | | | | | see #2019
| * | Get rid of match statements in layout queries in script_tasklpy2014-04-022-17/+8
| | |
| * | Get rid of match statements in Layout queries.(fixes #2019)lpy2014-04-021-23/+16
| | |
* | | Remove an obsolete commentSimon Sapin2014-04-011-4/+0
|/ / | | | | Remove a comment that was about a macro that was removed in a7ef1cd35e9347a285f245041db4eb94047f4ab0
* | Store Window.active_timers in a HashMapMartin Robinson2014-03-312-12/+16
| | | | | | | | | | | | | | A HashMap allows easily looking up a timer and canceling it in Window.ClearTimeout. Fixes #1477.
* | Build: Ugrade Mako to 0.9.1, to support Python 3.4Simon Sapin2014-03-312-0/+0
| |
* | Build: Do not swallow Mako template errors in ↵Simon Sapin2014-03-311-0/+1
| | | | | | | | src/components/style/properties.rs.mako