aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update TODOsBrendan Zabarauskas2014-05-272-4/+12
| |
* | Use constructor for SplitInfo to reduce code repetitionBrendan Zabarauskas2014-05-271-20/+14
| |
* | Update to owned::BoxBrendan Zabarauskas2014-05-271-2/+2
| |
* | Improve function namingBrendan Zabarauskas2014-05-272-4/+4
| |
* | Move box splitting by new-line to inline.rsBrendan Zabarauskas2014-05-272-25/+39
| |
* | Use a SplitInfo struct instead of a tuple to make the code more self-documentingBrendan Zabarauskas2014-05-272-22/+27
| |
* | Move some of the box splitting logic into inline.rsBrendan Zabarauskas2014-05-272-20/+35
| |
* | auto merge of #2482 : Ms2ger/servo/rev_iter, r=jdmbors-servo2014-05-231-2/+2
|\ \
| * | Replace deprecated rev_iter() by iter().rev().Ms2ger2014-05-231-2/+2
| |/
* | auto merge of #2471 : bjz/servo/split-to-width, r=pcwaltonbors-servo2014-05-232-87/+73
|\ \ | | | | | | | | | @pcwalton r?
| * | Add doc comments explaining some return typesBrendan Zabarauskas2014-05-211-1/+9
| | |
| * | Avoid splitting boxes if possibleBrendan Zabarauskas2014-05-211-18/+20
| | |
| * | Flatten some pattern matchingBrendan Zabarauskas2014-05-211-21/+24
| | |
| * | Replace usages of SplitBoxResult with option typesBrendan Zabarauskas2014-05-212-50/+23
| | |
* | | Add some fmt::show implementations to make debugging layout easier.Glenn Watson2014-05-232-0/+39
| |/ |/|
* | Update Rust.Ms2ger2014-05-2212-113/+115
| |
* | auto merge of #2411 : glennw/servo/issue-2335, r=pcwaltonbors-servo2014-05-221-3/+5
|\ \ | |/ |/|
| * Potential fix for #2335.Glenn Watson2014-05-221-3/+5
| |
* | Fix linebreak regressionBrendan Zabarauskas2014-05-161-2/+2
| | | | | | | | Fixes #2457
* | auto merge of #2456 : bjz/servo/metrics, r=pcwaltonbors-servo2014-05-162-133/+91
|\ \ | | | | | | | | | cc. @pcwalton
| * | Avoid unnecessary calculations of the entire run metricsBrendan Zabarauskas2014-05-161-12/+11
| | |
| * | Remove extra split_to_width callBrendan Zabarauskas2014-05-151-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 commentsBrendan Zabarauskas2014-05-151-41/+44
| | |
| * | Use CharIndex instead of GlyphIndex for LineIndicesBrendan Zabarauskas2014-05-151-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 Sapin2014-05-161-2/+2
| | |
* | | Keep initial values in a lazy static instead of passing a parameter around.Simon Sapin2014-05-164-16/+4
|/ / | | | | | | Thanks to @Kimundi for https://gist.github.com/Kimundi/8782487
* | auto merge of #2443 : bjz/servo/linebox_range, r=pcwaltonbors-servo2014-05-151-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 assertionsBrendan Zabarauskas2014-05-151-0/+21
| | |
| * | Use a tuple of fragment and glyph indices as the index type for LineBoxesBrendan Zabarauskas2014-05-151-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 generalBrendan Zabarauskas2014-05-141-3/+3
| | |
* | | Use ContravariantLifetime in LayoutNode.Cameron Zwarich2014-05-142-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 Zwarich2014-05-141-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 Sapin2014-05-141-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=pcwaltonbors-servo2014-05-134-81/+102
|\ \ | |/ |/| | | r? @pcwalton
| * Use fragment index type for referring to inline DOM fragmentsBrendan Zabarauskas2014-05-132-28/+42
| |
| * Use box index type for referring to inline boxesBrendan Zabarauskas2014-05-121-12/+16
| |
| * Add character index typeBrendan Zabarauskas2014-05-122-37/+40
| | | | | | | | This is more self-documenting and may highlight errors in the future.
| * Add RangeIndex trait and iteratorBrendan Zabarauskas2014-05-122-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=jdmbors-servo2014-05-123-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 Zwarich2014-05-093-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=pcwaltonbors-servo2014-05-091-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 #2288Simon Sapin2014-05-071-14/+4
| |
* | auto merge of #2369 : glennw/servo/issue-2308, r=metajackbors-servo2014-05-081-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 Watson2014-05-081-0/+8
| | |
* | | Require Range<T> to have a signed integer TBrendan Zabarauskas2014-05-074-50/+50
| | | | | | | | | | | | This allows for generic +ve/-ve offsets
* | | Make range genericBrendan Zabarauskas2014-05-074-11/+11
|/ /
* | auto merge of #2356 : glennw/servo/warnings, r=jdmbors-servo2014-05-072-3/+3
|\ \
| * | Fix a few mutability warningsGlenn Watson2014-05-072-3/+3
| |/
* / Use fmt::Show for outputting debug informationBrendan Zabarauskas2014-05-0612-92/+112
|/
* auto merge of #2338 : bjz/servo/remove-teardown, r=pcwaltonbors-servo2014-05-0510-63/+0
|\ | | | | | | According to @pcwalton these used to be important for memory safety but are no longer needed now.