aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_rowgroup.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Pass SharedLayoutContext to Flow::compute_absolute_position.Ms2ger2016-08-241-2/+2
|
* Remove some type aliases that are now just re-exports.Simon Sapin2016-07-201-1/+1
|
* Remove the ComputedValue traits and style_struct_traitsSimon Sapin2016-07-201-1/+1
|
* Move util::print_tree to gfx_traitsAnthony Ramine2016-07-041-1/+1
|
* Pass SharedStyleContext to assign_inline_sizes.Ms2ger2016-06-221-4/+4
|
* Pass SharedStyleContext to propagate_assigned_inline_size_to_children.Ms2ger2016-06-221-1/+1
|
* Pass SharedStyleContext to compute_used_inline_size.Ms2ger2016-06-221-1/+2
|
* script: Keep the DOM-side viewport up to date when scrolling happens inPatrick Walton2016-05-311-1/+2
| | | | | | | | | | | | | | | WebRender. This happens asynchronously, just as it does in non-WebRender mode. This functionality is a prerequisite for doing proper display-list-based hit testing in WebRender, since it moves the scroll offsets into Servo (and, specifically, into the script thread, enabling iframe event forwarding) instead of keeping them private to WebRender. Requires servo/webrender_traits#55 and servo/webrender#277. Partially addresses #11108.
* Renamed TComputedValues to ComputedValuesPer Lundberg2016-03-291-1/+1
| | | | This is a followup to #10210, and a continuation of #10185.
* ComputedValues is now ServoComputedValuesPer Lundberg2016-03-271-2/+2
| | | | This is the first part of #10185. More to follow. I have built this locally with both servo and geckolib without errors; let's see if it succeeds on all platforms as well.
* Parameterize the rest of the style system on TNode.Bobby Holley2016-03-241-1/+1
|
* gfx: Box stacking contexts to minimize `memmove` traffic.Patrick Walton2016-03-031-1/+1
| | | | | | `memmove` was showing up high in the profile when concatenating and shorting display lists. This change drastically reduces the `memmove` cost in exchange for some minor additional allocation cost.
* Auto merge of #9756 - mrobinson:flat-display-lists-webrender, r=pcwaltonbors-servo2016-03-021-2/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Flatten display list structure Instead of producing a tree of stacking contexts, display list generation now produces a flat list of display items and a tree of stacking contexts. This will eventually allow display list construction to produce and modify WebRender vertex buffers directly, removing the overhead of display list conversion. This change also moves layerization of the display list to the paint thread, since it isn't currently useful for WebRender. To accomplish this, display list generation now takes three passes of the flow tree: 1. Calculation of absolute positions. 2. Collection of a tree of stacking contexts. 3. Creation of a list of display items. After collection of display items, they are sorted based upon the index of their parent stacking contexts and their position in CSS 2.1 Appendeix E stacking order. This is a big change, but it actually simplifies display list generation. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9756) <!-- Reviewable:end -->
| * Flatten display list structureMartin Robinson2016-03-011-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of producing a tree of stacking contexts, display list generation now produces a flat list of display items and a tree of stacking contexts. This will eventually allow display list construction to produce and modify WebRender vertex buffers directly, removing the overhead of display list conversion. This change also moves layerization of the display list to the paint thread, since it isn't currently useful for WebRender. To accomplish this, display list generation now takes three passes of the flow tree: 1. Calculation of absolute positions. 2. Collection of a tree of stacking contexts. 3. Creation of a list of display items. After collection of display items, they are sorted based upon the index of their parent stacking contexts and their position in CSS 2.1 Appendeix E stacking order. This is a big change, but it actually simplifies display list generation.
* | Fix border collapsing at the end of a table-row-groupMatt Brubeck2016-03-011-6/+1
|/ | | | | | | | | | | | | This fixes the border-end calculation for table rows whose borders are collapsed with rows in different rowgroups. The border collapsing code now uses an iterator that yields all the rows as a flat sequence, regardless of how they are grouped in rowgroups. It gets rid of `TableRowGroupFlow::preliminary_collapsed_borders` which was never correct. (It was read but never written.) This may fix #8120 but I'm not 100% certain. (I haven't managed to reproduce the intermittent failure locally, and my reduced test case still fails but in a different way.)
* Move util::logical_geometry to styleAnthony Ramine2016-02-181-1/+1
|
* layout: Separate out overflow-for-scrolling from overflow-for-paint.Patrick Walton2016-02-031-3/+3
| | | | Closes #9484.
* Improve readability of flow tree dumpMartin Robinson2015-11-231-1/+6
| | | | | | | Use the PrintTree utility to improve the readability of flow tree dumps. Blocks and fragments are now split over two dump levels, because otherwise they are impenetrable. Also start printing the restyle damage of fragments.
* Remove dead code from layout.Ms2ger2015-11-181-4/+0
|
* Remove unused argument from ↵Ms2ger2015-11-041-3/+2
| | | | TableLikeFlow::assign_block_size_for_table_like_flow.
* Split Au type into separate crate, with minimal dependencies.Glenn Watson2015-10-011-1/+1
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+2
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-5/+4
| | | | This merges import blocks that were reported by tidy as unmerged.
* Elide most 'a lifetimesManish Goregaokar2015-09-041-6/+6
|
* flow::Flow should follow *_mut naming conventionsCorey Farwell2015-08-181-5/+5
| | | | Fixes #7148
* Fix existing syntactics nits.Josh Matthews2015-08-161-1/+1
|
* layout: Make sure anonymous table flows are statically positioned.Patrick Walton2015-08-061-4/+2
| | | | | | | | | | The failing `float-applies-to-*` CSS 2.1 tests never really should have been passing in the first place; they depend on floats inside fixed-layout tables working properly, which they don't. Closes #6078. Closes #6709. Closes #6858.
* Implement offsetParent/Top/Left/Width/Height.Glenn Watson2015-08-031-1/+2
|
* Use euclid from crates.ioecoal952015-06-191-1/+1
|
* compositing: Implement display ports and avoid creating display listsPatrick Walton2015-05-191-2/+2
| | | | | | for items outside it. This improves Servo's performance on large pages.
* layout: Allow inline elements to be containing blocks forPatrick Walton2015-05-131-4/+4
| | | | | | | | | | absolutely-positioned elements. This also implements a little bit of the infrastructure needed to support for fragmentation via support for multiple positioned fragments in one flow. Improves Google.
* Fix direction of columns in mixed LTR/RTL tables.Matt Brubeck2015-05-081-11/+15
| | | | | | | | | | | | | | Table columns should be layed out according to the 'direction' property of the table flow, regardless of the 'direction' property of any table-row, table-rowgroup, etc. flows. This fixes a number of the `direction-applies-to-*` tests in the CSS2.1 test suite. This also simplifies `propagate_column_inline_sizes_to_child` by separating the code used for table cells from the code for non-cell flows. r? @pcwalton
* Remove a range() call.Ms2ger2015-05-011-1/+1
|
* Refactor flow construction to make `float` less of a special case.Simon Sapin2015-04-291-1/+1
|
* layout: Make `margin: auto` work properly with tables.Patrick Walton2015-04-281-3/+4
| | | | Improves the Amazon home page.
* Remove some usage of `.as_slice()`.Simon Sapin2015-04-271-3/+3
|
* layout: Implement most of `border-collapse` per CSS 2.1 § 17.6.2.Patrick Walton2015-04-271-18/+89
| | | | | | | | | | | | | | | | Known issues: * Collapsed borders do not correctly affect the border-box of the table itself. * The content widths of all cells in a column and the content height of all cells in a row is the same in this patch, but not in Gecko and WebKit. * Corners are not painted well. The spec does not say what to do here. * Column spans are not handled well. The spec does not say what to do here either.
* Remove some as_slice calls.Ms2ger2015-04-241-1/+1
|
* Replace unsafe_blocks by unsafe_code.Manish Goregaokar2015-03-211-1/+1
|
* Fixes for positioning of RTL blocks.Matt Brubeck2015-03-171-0/+2
| | | | | | | | | | | | This fixes a bug in finding the top left corner of an RTL block in physical coordinates. (The old code used the `start` point of the `position` rect, which is not always the top left.) It also fixes the setting of `position.start.i` in certain mixed LTR/RTL cases. There is still a bug related to `position.size` for RTL blocks with margins. See the FIXME comments for details.
* layout: Implement `border-spacing` per CSS 2.1 § 17.6.1 and the legacyPatrick Walton2015-03-121-18/+22
| | | | | | | | | | | | | | | | | `cellspacing` attribute per HTML5 § 14.3.9. Table layout code has been refactored to push the spacing down to rowgroups and rows; this will aid the implementation of `border-collapse` as well. This commit also fixes two nasty issues in table layout: * In fixed layout, extra space would not be divided among columns that had auto width but had nonzero minimum width. * In automatic layout, extra space would be distributed to constrained columns as well even if unconstrained columns with percentage equal to zero were present.
* layout: Implement ordered lists, CSS counters, and `quotes` per CSS 2.1Patrick Walton2015-03-091-10/+4
| | | | | | | | | | | | | | § 12.3-12.5. Only simple alphabetic and numeric counter styles are supported. (This is most of them though.) Although this PR adds a sequential pass to layout, I verified that on pages that contain a reasonable number of ordered lists (Reddit `/r/rust`), the time spent in generated content resolution is dwarfed by the time spent in the parallelizable parts of layout. So I don't expect this to negatively affect our parallelism expect perhaps in pathological cases.
* Get rid of servo_utilDan Fox2015-03-051-2/+2
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-1/+1
|
* End the libstyle 'pub use' madness.Simon Sapin2015-01-301-1/+1
|
* layout: Implement floated list items.Patrick Walton2015-01-281-0/+5
| | | | | | | This patch also makes Servo not crash when `generated_containing_block_rect()` is called on a list item (as, for example, GitHub does), and for good measure I added the fix to other flows as well.
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-2/+2
|
* Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.Ms2ger2015-01-081-1/+1
|
* layout: Explicitly thread border box dimensions and relative offsetsPatrick Walton2015-01-041-4/+6
| | | | | | | | | | through display list building. The old `flow_origin` concept was ill-defined (sometimes the border box plus the flow origin, sometimes including horizontal margins and sometimes not, sometimes including relative position and sometimes not), leading to brittleness and test failures. This commit reworks the logic to always pass border box origins in during display list building.
* layout: Paint stacking contexts' overflow areas properly.Patrick Walton2015-01-041-3/+8
| | | | | This was making `box-shadow` not show up in many cases, in particular, but the effects were not limited to that.