Fernando Jiménez Moreno
dc9a33f3a9
Generate ::before and ::after content from url() for layout2020
2020-02-28 15:00:07 +01:00
Fernando Jiménez Moreno
60fd1e005a
Temporarily allow PseudoElementContentItem unused variant
2020-02-25 11:24:43 +01:00
Fernando Jiménez Moreno
5b2d6c81b2
Generate ::before and ::after content from attr() for layout 2020
2020-02-25 10:47:48 +01:00
Fernando Jiménez Moreno
bc66948f7c
Generate ::before and ::after string content for layout 2020
2020-02-25 10:47:48 +01:00
Martin Robinson
02deb99a05
Use euclid data types for physical structs in layout_2020
...
This removes a bit of duplication and allows layout_2020 to benefit from
a much richer set of utilities.
2020-01-23 15:39:32 +01:00
Martin Robinson
27e0400891
Fix an issue with unset_boxes_in_subtree
in layout_2020
...
If the root node of the subtree doesn't have any boxes to unset, we
should exit early instead of unsetting boxes on siblings of the root.
This eliminates an infinite loop in this method, since the siblings of
the root are not in the subtree.
2020-01-21 15:29:23 +01:00
Anthony Ramine
abc2c15c28
Store an OpaqueNode in boxes and fragments
2019-12-13 17:59:27 +01:00
Anthony Ramine
47944a39fc
Remove the Node type parameter from Contents
...
We now pass the Node as an argument during DOM traversal in layout.
2019-12-13 17:51:06 +01:00
Anthony Ramine
fb1891f436
Add NodeExt::as_opaque
2019-12-13 17:51:06 +01:00
Simon Sapin
8996be3c5e
Don’t assume replaced elements have an intrinsic size
2019-12-10 15:11:53 +01:00
Simon Sapin
c056e5b6b0
Finish plumbing intrinsic min/max-content through box construction
2019-12-03 15:11:35 +01:00
Simon Sapin
da36fcddb0
Add box construction for 'inline-block'…
...
… and other atomic inline-level boxes.
2019-12-03 15:11:35 +01:00
Simon Sapin
4e6e31a76c
Pass a LayoutContext through box construction
2019-12-02 22:26:49 +01:00
Simon Sapin
aa925a5984
Un-allow and fix warnings in components/layout_2020
2019-12-02 16:32:34 +01:00
Anthony Ramine
5a360ac63d
Start supporting images in layout 2020
2019-12-01 10:56:33 +01:00
Anthony Ramine
24b7eadfff
Make NodeExt private in layout_2020
2019-11-26 16:36:24 +01:00
Anthony Ramine
10eccc8beb
Rename Arc to ServoArc in layout_2020::dom_traversal
2019-11-26 16:36:24 +01:00
Simon Sapin
b2b3ea992c
Make IndependentFormattingContext a struct that owns styles
...
… and has a private enum for its contents.
Privacy forces the rest of the code to go through methods
rather than matching on the enum,
reducing accidental layout-mode-specific behavior.
2019-11-26 15:42:27 +01:00
Anthony Ramine
327740d67a
Fix a ridiculous bug in layout-2020
...
Who needs CI anyway?
2019-10-25 11:23:46 +02:00
Simon Sapin
1bb85ed05b
Make some of layout_2020 private
2019-10-04 17:51:05 +02:00
Anthony Ramine
ec74204fa0
Call BoxTreeRoot::construct from layout_thread_2020
2019-10-04 10:03:42 +02:00
Anthony Ramine
053a3d5a5a
Handle anonymous style in traverse_pseudo_element_contents
2019-09-23 20:32:16 +02:00
Anthony Ramine
0c156c60c2
Handle anonymous style in end_inline_formatting_context
2019-09-23 20:31:43 +02:00
Anthony Ramine
c08cfbb5f3
Cheat the system and use an Arc in BoxSlot
...
Ideally we want to be able to borrow from the DOM during box construction
but that's not playing very well at the moment with the current bridge
between script and layout.
2019-09-19 11:24:50 +02:00
Anthony Ramine
4444c5a2ad
Import victor's layout system 🍷
2019-09-11 10:36:30 +02:00
Simon Sapin
86904757e6
Import files from Victor
...
fdb11f3e87
2019-09-11 10:06:35 +02:00