Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Remove unused teardown methods | Brendan Zabarauskas | 2014-05-05 | 10 | -63/+0 | |
| | | | | | | | | According to @pcwalton these used to be important for memory safety but are no longer needed now. | |||||
* | | auto merge of #2337 : bjz/servo/smallvec, r=pcwalton | bors-servo | 2014-05-05 | 5 | -30/+27 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | We can't replace the ones in the `style` crate because some functions expect generic `SmallVec`s. I also did some reorganisation of the `smallvec` macros. cc @pcwalton | |||||
| * | | Replace most of the SmallVec0 usages with std::vec::Vec | Brendan Zabarauskas | 2014-05-05 | 5 | -30/+27 | |
| |/ | | | | | | | We can't replace the ones in the `style` crate because some functions expect generic `SmallVec`s. | |||||
* / | Remove OptVector. | Ms2ger | 2014-05-05 | 1 | -63/+0 | |
|/ | ||||||
* | Convert Vec::new() to vec!() | Matt Murphy | 2014-05-04 | 11 | -56/+56 | |
| | ||||||
* | ~[] to Vec in table, table_colgroup, and text | Matt Murphy | 2014-05-04 | 3 | -14/+13 | |
| | ||||||
* | ~[] to Vec in layout flow, block, table, row, rowgroup, wrapper | Matt Murphy | 2014-05-04 | 6 | -70/+70 | |
| | ||||||
* | ~[] to Vec in main | Matt Murphy | 2014-05-04 | 1 | -2/+2 | |
| | ||||||
* | ~[] to Vec in main/layout/wrapper.rs | Matt Murphy | 2014-05-04 | 1 | -5/+5 | |
| | ||||||
* | ~[] to Vec in main/layout/layout_task.rs, script/dom/clientrectlist.rs, | Matt Murphy | 2014-05-04 | 1 | -1/+1 | |
| | | | | script/layout_interface.rs | |||||
* | ~[] to Vec in main/layout/box_.rs, gfx/text/util.rs, main/layout/text.rs | Matt Murphy | 2014-05-04 | 2 | -9/+10 | |
| | ||||||
* | ~[] to Vec in main/layout/construct.rs and associated files | Matt Murphy | 2014-05-04 | 2 | -3/+54 | |
| | ||||||
* | ~[] to std::vec::Vec in layout | Matt Murphy | 2014-05-04 | 2 | -11/+11 | |
| | ||||||
* | ~[] to Vec in FontStyle and FontGroup | Matt Murphy | 2014-05-04 | 1 | -2/+2 | |
| | ||||||
* | Replace most ~"string"s with "string".to_owned(). | Ms2ger | 2014-05-04 | 10 | -13/+13 | |
| | ||||||
* | Replace all ~"" with "".to_owned(). | Ms2ger | 2014-05-03 | 4 | -5/+5 | |
| | ||||||
* | Move all methods on T to JSRef<T> or JS<T> as appropriate. | Josh Matthews | 2014-05-03 | 1 | -15/+21 | |
| | ||||||
* | Remove JS::get/get_mut to enforce sound rooting practices. | Josh Matthews | 2014-05-03 | 2 | -6/+5 | |
| | ||||||
* | Implement safe rooting strategy via Unrooted, Root, JSRef, and JS. | Josh Matthews | 2014-05-03 | 1 | -2/+2 | |
| | ||||||
* | Stop passing owned strings to fail!(). | Ms2ger | 2014-05-03 | 1 | -1/+1 | |
| | | | | The ~"string" expression is being removed in upstream rust. | |||||
* | layout: Guess the width of block formatting contexts so that we can | Patrick Walton | 2014-05-02 | 2 | -81/+144 | |
| | | | | speculatively lay them out in parallel | |||||
* | layout: Rewrite display list building to be parallel and to handle | Patrick Walton | 2014-05-02 | 17 | -965/+1214 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | overflow correctly, and opportunistically lay out blocks in parallel even if floats are present. This commit fixes the `inline-height-test` in Acid2 by implementing proper overflow as well as the inline "strut". (See CSS 2.1 § 10.8.1.) Acid2 was accidentally being rendered properly before because tables' descendant flows were not being laid out properly. Display list building is now parallel and is done by bubbling up display items and layers from parent to child. Speedups of around 60%-70% are observed on Wikipedia with a 4-core HyperThreaded Core i7. More optimizations are possible; this is just a start. To minimize the amount of data that needs to be bubbled up, as well as to make proper handling of `overflow: hidden` clipping easier, the `StackingContext` abstraction is now purely internal to the display list. That is, instead of placing items into a stacking context directly, display items are placed into display lists alongside a stacking level. When a stacking context is complete, it is flattened with the the `flatten` method, which shuffles the display items that make up the context into their proper order while handling clipping properly. | |||||
* | layout: Re-enable parallel layout by removing all `RefCell` instances | Patrick Walton | 2014-05-02 | 17 | -1584/+1291 | |
| | | | | | | | | | | | | | 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. | |||||
* | Replace Au::zero_* with generic methods | Matt Brubeck | 2014-05-02 | 4 | -8/+9 | |
| | ||||||
* | Make get_content_boxes return Vec. | Ms2ger | 2014-04-28 | 1 | -2/+2 | |
| | ||||||
* | Make get_nodes_under_mouse return Vec. | Ms2ger | 2014-04-28 | 1 | -2/+2 | |
| | ||||||
* | Remove unused_mut warning | Manish Goregaokar | 2014-04-28 | 1 | -1/+1 | |
| | ||||||
* | This batch of changes upgrades Servo to work with the Rust upgrade as of | Lars Bergstrom | 2014-04-27 | 23 | -410/+412 | |
| | | | | | | 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. | |||||
* | Implement Element.localName.(fixes #2188) | lpy | 2014-04-23 | 1 | -1/+1 | |
| | ||||||
* | auto merge of #2097 : SimonSapin/servo/pseudo-cleanup, r=pcwalton | bors-servo | 2014-04-16 | 2 | -32/+18 | |
|\ | ||||||
| * | fixup! Rename ElementType to PseudoElementType, to avoid confusion with ↵ | Simon Sapin | 2014-04-14 | 1 | -1/+1 | |
| | | | | | | | | ElementTypeId. | |||||
| * | fixup! Merge new_with_pseudo_without_self() and new_with_pseudo() into ↵ | Simon Sapin | 2014-04-14 | 1 | -1/+1 | |
| | | | | | | | | with_pseudo() | |||||
| * | Merge new_with_pseudo_without_self() and new_with_pseudo() into with_pseudo() | Simon Sapin | 2014-04-14 | 1 | -14/+7 | |
| | | ||||||
| * | Rename ElementType to PseudoElementType, to avoid confusion with ElementTypeId. | Simon Sapin | 2014-04-14 | 2 | -11/+11 | |
| | | ||||||
| * | Use #[deriving(Clone)] for ThreadSafeLayoutNode | Simon Sapin | 2014-04-14 | 1 | -9/+2 | |
| | | ||||||
* | | box_: Remove unused code that resurfaced with the Rust upgrade | Patrick Walton | 2014-04-15 | 1 | -72/+0 | |
|/ | ||||||
* | auto merge of #2071 : hyunjunekim/servo/try, r=larsbergstrom | bors-servo | 2014-04-11 | 1 | -0/+3 | |
|\ | | | | | | | If <span> element has pseudo style, draw pseudo element. | |||||
| * | inline pseudo element | hyunjunekim | 2014-04-09 | 1 | -0/+3 | |
| | | ||||||
* | | auto merge of #2085 : lpy/servo/issue2079, r=jdm | bors-servo | 2014-04-11 | 1 | -17/+0 | |
|\ \ | | | | | | | | | | see #2079 | |||||
| * | | Replace @s with Rc types.(fixes #2079) | lpy | 2014-04-12 | 1 | -17/+0 | |
| | | | ||||||
* | | | auto merge of #2070 : larsbergstrom/servo/android_201404c, ↵ | bors-servo | 2014-04-10 | 1 | -0/+75 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | r=larsbergstrom,metajack r? @metajack | |||||
| * | | | Update the configuration files to properly build rust. Revert rust-stb-image ↵ | Lars Bergstrom | 2014-04-10 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | submodule misupdate. | |||||
| * | | | fix android for rust update | aydin.kim | 2014-04-10 | 1 | -0/+5 | |
| | | | | ||||||
| * | | | Android fixes for February Rust Upgrade | Lars Bergstrom | 2014-04-10 | 1 | -0/+70 | |
| | |/ | |/| | ||||||
* | | | auto merge of #2020 : lpy/servo/issue2012, r=larsbergstrom | bors-servo | 2014-04-10 | 7 | -398/+282 | |
|\ \ \ | |_|/ |/| | | | | | see #2012 | |||||
| * | | Make box_ not Option in block flows.(fixes #2012) | lpy | 2014-04-06 | 7 | -398/+282 | |
| | | | ||||||
* | | | auto merge of #2045 : Manishearth/servo/pub-struct-2044, r=SimonSapin | bors-servo | 2014-04-09 | 4 | -7/+7 | |
|\ \ \ | |_|/ |/| | | | | | See #2044 | |||||
| * | | fix visibility warnings in main crate (#2044) | Manish Goregaokar | 2014-04-06 | 4 | -7/+7 | |
| |/ | ||||||
* / | Remove trailing whitespace. | Ms2ger | 2014-04-07 | 1 | -12/+12 | |
|/ | ||||||
* | auto merge of #2038 : SimonSapin/servo/min-height-collapse, r=pcwalton | bors-servo | 2014-04-04 | 1 | -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 |