Emilio Cobos Álvarez
3d57c22e9c
Update euclid.
...
There are a few canvas2d-related dependencies that haven't updated, but they
only use euclid internally so that's not blocking landing the rest of the
changes.
Given the size of this patch, I think it's useful to get this landed as-is.
2019-07-23 23:09:55 +02:00
Emilio Cobos Álvarez
c2819365f0
style: Rename MozLength to Size, and MaxLength to MaxSize.
...
MozLength is not a very descriptive name. If we're going to use it in both Gecko
and Servo we may as well name it something more accurate.
I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence
of box-sizing. I don't have better ideas than `Size`, given that.
[1]: https://drafts.csswg.org/css2/visudet.html#propdef-width
[2]: https://drafts.csswg.org/css2/box.html#content-width
Differential Revision: https://phabricator.services.mozilla.com/D19280
2019-02-12 02:28:00 +01:00
Emilio Cobos Álvarez
6daebcc5df
Fix servo build.
2019-02-10 07:23:51 +01:00
Anthony Ramine
fc75719ff2
Remove BlockFlowDisplayListBuilding
...
Replaced by inherent methods on BlockFlow, the only implementor of that trait.
2019-01-14 10:37:41 +01:00
Emilio Cobos Álvarez
c7f30ad0df
style: Fix servo build.
2019-01-08 12:01:11 +01:00
Emilio Cobos Álvarez
4a31509215
style: Fix servo build.
...
This also fixes a bunch of calc handling issues and such.
Also remove tests that no longer compile and are covered by WPT.
2019-01-08 12:00:42 +01:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Simon Sapin
2012be4a8b
cargo fix --edition-idioms
2018-11-08 09:28:00 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
Pyfisch
d9b1950d74
Layout: Remove redundant deny unsafe and format
...
Add license to two files.
Bypass DisplayListBuilder for some items.
2018-10-22 16:15:48 +02:00
Pyfisch
349047b096
Rustfmt layout crate
2018-09-01 13:24:57 +02:00
Simon Sapin
1333b6ee45
Fix the build for NLL
...
Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build`
https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
2018-08-24 17:49:58 +02:00
Josh Matthews
7c32ad7c3d
Revert "Fix the build for NLL"
...
This reverts commit d1733aa502
.
2018-08-07 20:24:55 -04:00
Simon Sapin
d1733aa502
Fix the build for NLL
...
Test with `RUSTFLAGS="-Zborrowck=mir -Ztwo-phase-borrows" cargo build`
https://internals.rust-lang.org/t/help-us-get-non-lexical-lifetimes-nll-over-the-finish-line/7807/7
2018-08-08 00:09:56 +02:00
Emilio Cobos Álvarez
895946bb18
layout: script: Fix build.
2018-06-23 20:34:10 +02:00
Manish Goregaokar
54eb1eb780
Support rowspan=0; always fixup overflowing rowspans beforehand
...
This makes rowspan=0 work by storing notes on which group of rows we're
in for tables containing both rowgroups and rows, and using that to
respan cells with overlarge or zero rowspans.
This also gets rid of the largest_leftover_incoming_size business,
because now spans will always be correct and we'll never have any left
over.
2018-02-28 17:37:59 -08:00
Manish Goregaokar
cec37a492a
Unconditionally layout rows when laying out tables
...
If the reflow flag is set on a row it will be on the table anyway
2018-02-27 14:47:22 -08:00
Manish Goregaokar
19974e39c8
Merge fourth and fifth (assign block sizes / positions) passes
2018-02-27 09:43:38 -08:00
Manish Goregaokar
ef983c340f
Remove outdated comment
2018-02-26 23:35:01 -08:00
Manish Goregaokar
0261762fa4
Handle overlarge rowspans by keeping track of largest leftover incoming sizes
2018-02-26 23:35:00 -08:00
Manish Goregaokar
108ecc1f4d
Compute border spacing info beforehand
2018-02-26 22:20:26 -08:00
Manish Goregaokar
216082c342
Preserve information on incoming row sizes
2018-02-26 19:25:19 -08:00
Manish Goregaokar
e894c8b1bf
Hacky rowspan support
2018-02-26 18:19:09 -08:00
Manish Goregaokar
2a0e1cd9c9
Assign table row block sizes in the parent table or rowgroup
2018-02-26 17:08:43 -08:00
Manish Goregaokar
285313f3c7
bail early for initial valued backgrounds
2018-02-21 00:36:35 -08:00
Manish Goregaokar
c36335e031
Remove table_style; tables already get their backgrounds painted correctly
2018-02-16 16:01:54 -08:00
Manish Goregaokar
180b29ae66
Unconditionally remove repaint damage for table cells/rows/rgs
2018-02-16 16:01:53 -08:00
Manish Goregaokar
c2de3eb9ac
Check visibility beforehand
2018-02-16 16:01:52 -08:00
Manish Goregaokar
f796823b94
Handle rowspan
2018-02-16 16:01:51 -08:00
Manish Goregaokar
cfa81e8b79
Refactor column index advancing into its own method
2018-02-16 16:01:50 -08:00
Manish Goregaokar
b72a50d50a
Pass down full ComputedValues to TableCellStyleInfo; use for correct color computation
2018-02-16 16:01:49 -08:00
Manish Goregaokar
21140e7a0a
Make TableCellStyleIterator operate on immutable flows
2018-02-16 16:01:49 -08:00
Manish Goregaokar
5cd15eeb54
Don't redraw backgrounds that we've already drawn
2018-02-16 16:01:47 -08:00
Manish Goregaokar
db6ec58e6b
Generate display lists for table cells during display list generation for their table parent
2018-02-16 16:01:46 -08:00
Manish Goregaokar
f3531d1d35
Factor out BlockFlow::background_border_section()
2018-02-16 16:01:44 -08:00
Manish Goregaokar
836e59e5b6
Handle colspan in TableCellStyleIterator
2018-02-16 16:01:44 -08:00
Manish Goregaokar
6317c44ab4
Add Iterator impl for TableCellStyleIterator
2018-02-16 16:01:43 -08:00
Manish Goregaokar
1dd5bed031
Create TableCellStyleIterator
2018-02-16 16:01:42 -08:00
Manish Goregaokar
35be0c50f6
Add TableRowAndGroupIterator
2018-02-16 16:01:41 -08:00
Manish Goregaokar
b416bb3aa7
Add get_column_styles for getting column structure and styles for a table
2018-02-16 16:01:41 -08:00
janczer
661d234c3c
Change debug assertions to specific ones
2018-02-07 09:21:24 +01:00
Pyfisch
ea062e6e47
Create own file for background calculations in layout
...
Move display_list_builder.rs and webrender_helpers.rs
along with the new file to components/layout/display_list/
Remove apparently unused IdType enum.
Only variant used was OverflowClip.
See #19676
2018-01-06 20:19:32 +01:00
Matt Brubeck
c60cfc5a9f
Turn flow::base and friends into methods
2017-12-14 12:16:45 -06:00
Keith Yeung
3465b2f14d
Remove border_collapse field in InternalTable
2017-12-08 04:51:58 -08:00
Emilio Cobos Álvarez
af879523ea
style: Make all keywords CamelCase for consistency.
...
This prevents confusion and paves the ground for derive(Parse) of them.
2017-12-06 02:35:10 +01:00
Bastien Orivel
29b4eec141
Bump bitflags to 1.0 in every servo crate
2017-10-30 23:36:06 +01:00
Gecko Backout
11c64178d8
Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/18809
2017-10-19 21:26:51 +00:00