Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Update TODOs | Brendan Zabarauskas | 2014-05-27 | 2 | -4/+12 | |
| | | ||||||
* | | Use constructor for SplitInfo to reduce code repetition | Brendan Zabarauskas | 2014-05-27 | 1 | -20/+14 | |
| | | ||||||
* | | Update to owned::Box | Brendan Zabarauskas | 2014-05-27 | 1 | -2/+2 | |
| | | ||||||
* | | Improve function naming | Brendan Zabarauskas | 2014-05-27 | 2 | -4/+4 | |
| | | ||||||
* | | Move box splitting by new-line to inline.rs | Brendan Zabarauskas | 2014-05-27 | 2 | -25/+39 | |
| | | ||||||
* | | Use a SplitInfo struct instead of a tuple to make the code more self-documenting | Brendan Zabarauskas | 2014-05-27 | 2 | -22/+27 | |
| | | ||||||
* | | Move some of the box splitting logic into inline.rs | Brendan Zabarauskas | 2014-05-27 | 2 | -20/+35 | |
| | | ||||||
* | | auto merge of #2482 : Ms2ger/servo/rev_iter, r=jdm | bors-servo | 2014-05-23 | 1 | -2/+2 | |
|\ \ | ||||||
| * | | Replace deprecated rev_iter() by iter().rev(). | Ms2ger | 2014-05-23 | 1 | -2/+2 | |
| |/ | ||||||
* | | auto merge of #2471 : bjz/servo/split-to-width, r=pcwalton | bors-servo | 2014-05-23 | 2 | -87/+73 | |
|\ \ | | | | | | | | | | @pcwalton r? | |||||
| * | | Add doc comments explaining some return types | Brendan Zabarauskas | 2014-05-21 | 1 | -1/+9 | |
| | | | ||||||
| * | | Avoid splitting boxes if possible | Brendan Zabarauskas | 2014-05-21 | 1 | -18/+20 | |
| | | | ||||||
| * | | Flatten some pattern matching | Brendan Zabarauskas | 2014-05-21 | 1 | -21/+24 | |
| | | | ||||||
| * | | Replace usages of SplitBoxResult with option types | Brendan Zabarauskas | 2014-05-21 | 2 | -50/+23 | |
| | | | ||||||
* | | | Add some fmt::show implementations to make debugging layout easier. | Glenn Watson | 2014-05-23 | 2 | -0/+39 | |
| |/ |/| | ||||||
* | | Update Rust. | Ms2ger | 2014-05-22 | 12 | -113/+115 | |
| | | ||||||
* | | auto merge of #2411 : glennw/servo/issue-2335, r=pcwalton | bors-servo | 2014-05-22 | 1 | -3/+5 | |
|\ \ | |/ |/| | ||||||
| * | Potential fix for #2335. | Glenn Watson | 2014-05-22 | 1 | -3/+5 | |
| | | ||||||
* | | Fix linebreak regression | Brendan Zabarauskas | 2014-05-16 | 1 | -2/+2 | |
| | | | | | | | | Fixes #2457 | |||||
* | | auto merge of #2456 : bjz/servo/metrics, r=pcwalton | bors-servo | 2014-05-16 | 2 | -133/+91 | |
|\ \ | | | | | | | | | | cc. @pcwalton | |||||
| * | | Avoid unnecessary calculations of the entire run metrics | Brendan Zabarauskas | 2014-05-16 | 1 | -12/+11 | |
| | | | ||||||
| * | | Remove extra split_to_width call | Brendan Zabarauskas | 2014-05-15 | 1 | -44/+3 | |
| | | | | | | | | | | | | This does not seem to do anything, and according to @pcwalton it might be unnecessary. Float layout is rather broken anyway, and needs to be reworked. | |||||
| * | | Reorganise comments | Brendan Zabarauskas | 2014-05-15 | 1 | -41/+44 | |
| | | | ||||||
| * | | Use CharIndex instead of GlyphIndex for LineIndices | Brendan Zabarauskas | 2014-05-15 | 1 | -40/+37 | |
| | | | | | | | | | | | | All of the text run methods use character indices and the split_to_width function also uses character indices. Therefore it will be easier to use character indices to keep track of line breaks than glyph indices. | |||||
* | | | Add a fast path in the cascade for anonymous boxes. | Simon Sapin | 2014-05-16 | 1 | -2/+2 | |
| | | | ||||||
* | | | Keep initial values in a lazy static instead of passing a parameter around. | Simon Sapin | 2014-05-16 | 4 | -16/+4 | |
|/ / | | | | | | | Thanks to @Kimundi for https://gist.github.com/Kimundi/8782487 | |||||
* | | auto merge of #2443 : bjz/servo/linebox_range, r=pcwalton | bors-servo | 2014-05-15 | 1 | -19/+157 | |
|\ \ | | | | | | | | | | | | | | | | Glyph indices are currently not tracked, once they are, they will allow us to implement faster line breaks in the future. cc. @pcwalton | |||||
| * | | Add some debug assertions | Brendan Zabarauskas | 2014-05-15 | 1 | -0/+21 | |
| | | | ||||||
| * | | Use a tuple of fragment and glyph indices as the index type for LineBoxes | Brendan Zabarauskas | 2014-05-15 | 1 | -18/+135 | |
| | | | | | | | | | | | | Glyph indices are currently not tracked, once they are, they will allow us to implement faster line breaks in the future. | |||||
| * | | Make RangeIndex trait more general | Brendan Zabarauskas | 2014-05-14 | 1 | -3/+3 | |
| | | | ||||||
* | | | Use ContravariantLifetime in LayoutNode. | Cameron Zwarich | 2014-05-14 | 2 | -8/+8 | |
| | | | | | | | | | | | | | | | Since ContravariantLifetime uses no storage, this will reduce the size of a LayoutNode from 3 words to 2. | |||||
* | | | Don't check the field parameter in LayoutNode::eq. | Cameron Zwarich | 2014-05-14 | 1 | -2/+1 | |
|/ / | | | | | | | | | The chain field shouldn't be relevant for equality, since it is just a hack to artificially extend lifetimes. | |||||
* | | Remove OptNewVector and use Vec instead. | Simon Sapin | 2014-05-14 | 1 | -123/+57 | |
| | | | | | | | | | | | | Before we had Vec<T>, Option<~[T]> was used as an optimization of ~[T] to avoid allocating for empty vectors when that was the common case. Vec<T> itself does this optimization, so there is no need for this anymore. | |||||
* | | auto merge of #2389 : bjz/servo/indices, r=pcwalton | bors-servo | 2014-05-13 | 4 | -81/+102 | |
|\ \ | |/ |/| | | | r? @pcwalton | |||||
| * | Use fragment index type for referring to inline DOM fragments | Brendan Zabarauskas | 2014-05-13 | 2 | -28/+42 | |
| | | ||||||
| * | Use box index type for referring to inline boxes | Brendan Zabarauskas | 2014-05-12 | 1 | -12/+16 | |
| | | ||||||
| * | Add character index type | Brendan Zabarauskas | 2014-05-12 | 2 | -37/+40 | |
| | | | | | | | | This is more self-documenting and may highlight errors in the future. | |||||
| * | Add RangeIndex trait and iterator | Brendan Zabarauskas | 2014-05-12 | 2 | -4/+4 | |
| | | | | | | | | This will allow for the definition of typesafe range units in the future, for example for glyph indices. This also adds a macro that allows for the easy implementation of new range index types. | |||||
* | | auto merge of #2388 : zwarich/servo/cssom, r=jdm | bors-servo | 2014-05-12 | 3 | -6/+5 | |
|\ \ | |/ |/| | | | | | | | | | | | Implementing the CSSOM requires giving the script task access to the computed style for a node. Moving it into a new SharedLayoutData struct member of LayoutDataRef seems to be the best way to achieve this. This is the first step towards #1721. | |||||
| * | Move the computed style to a new SharedLayoutData struct. | Cameron Zwarich | 2014-05-09 | 3 | -6/+5 | |
| | | | | | | | | | | | | | | | | Implementing the CSSOM requires giving the script task access to the computed style for a node. Moving it into a new SharedLayoutData struct member of LayoutDataRef seems to be the best way to achieve this. This is the first step towards #1721. | |||||
* | | auto merge of #2345 : SimonSapin/servo/reverse-declarations, r=pcwalton | bors-servo | 2014-05-09 | 1 | -14/+4 | |
|\ \ | |/ |/| | | | | | | | … and deal with properties whose initial value can be affected at computed-value time. r? @pcwalton | |||||
| * | Set the border-*-width computed values to 0 as appropriate. Fix #2288 | Simon Sapin | 2014-05-07 | 1 | -14/+4 | |
| | | ||||||
* | | auto merge of #2369 : glennw/servo/issue-2308, r=metajack | bors-servo | 2014-05-08 | 1 | -0/+8 | |
|\ \ | | | | | | | | | | | | | There might be a "cleaner" rust way to separate the scope and invoke the drop() call? | |||||
| * | | Fix for parallel data race in layout code. Fixes #2308. | Glenn Watson | 2014-05-08 | 1 | -0/+8 | |
| | | | ||||||
* | | | Require Range<T> to have a signed integer T | Brendan Zabarauskas | 2014-05-07 | 4 | -50/+50 | |
| | | | | | | | | | | | | This allows for generic +ve/-ve offsets | |||||
* | | | Make range generic | Brendan Zabarauskas | 2014-05-07 | 4 | -11/+11 | |
|/ / | ||||||
* | | auto merge of #2356 : glennw/servo/warnings, r=jdm | bors-servo | 2014-05-07 | 2 | -3/+3 | |
|\ \ | ||||||
| * | | Fix a few mutability warnings | Glenn Watson | 2014-05-07 | 2 | -3/+3 | |
| |/ | ||||||
* / | Use fmt::Show for outputting debug information | Brendan Zabarauskas | 2014-05-06 | 12 | -92/+112 | |
|/ | ||||||
* | auto merge of #2338 : bjz/servo/remove-teardown, r=pcwalton | bors-servo | 2014-05-05 | 10 | -63/+0 | |
|\ | | | | | | | According to @pcwalton these used to be important for memory safety but are no longer needed now. |