Ms2ger
c33ac876ff
Pass SharedStyleContext to propagate_and_compute_used_inline_size.
2016-06-22 14:29:36 +02:00
Ms2ger
21b8d2bd91
Pass SharedStyleContext to propagate_assigned_inline_size_to_children.
2016-06-22 14:28:14 +02:00
Ms2ger
959f8c11cd
Pass SharedStyleContext to TableWrapperFlow::compute_used_inline_size.
2016-06-22 14:27:02 +02:00
Ms2ger
9731a001db
Pass SharedStyleContext to compute_used_inline_size.
2016-06-22 14:26:52 +02:00
Ms2ger
018bebe90d
Pass SharedStyleContext to compute_inline_size_constraint_inputs.
2016-06-22 14:22:21 +02:00
Ms2ger
5c12755fa6
Pass SharedStyleContext to initial_computed_inline_size.
2016-06-22 14:21:08 +02:00
Ms2ger
2a1e2f491a
Pass SharedStyleContext to containing_block_inline_size.
2016-06-22 14:19:56 +02:00
Ms2ger
f20ea08a1b
Pass SharedStyleContext to explicit_block_containing_size.
2016-06-22 14:17:33 +02:00
Ms2ger
6f4b8f2505
Store SharedStyleContext in AbsoluteAssignBSizesTraversal.
2016-06-22 14:09:54 +02:00
Ms2ger
e142b78850
Pass SharedStyleContext to calculate_absolute_block_size_and_margins.
2016-06-22 14:08:28 +02:00
Ms2ger
e6435b7ec4
Pass SharedStyleContext to adjust_fragments_for_collapsed_margins_if_root.
2016-06-22 14:07:06 +02:00
bors-servo
47387a5c44
Auto merge of #11752 - mbrubeck:cleanup, r=pcwalton
...
Minor code cleanup in layout
r? @pcwalton
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11752 )
<!-- Reviewable:end -->
2016-06-21 17:51:26 -05:00
Matt Brubeck
25a19343b3
Remove REPAINT damage in Fragment::build_display_list
...
Previously, the code that called this function was responsible for this.
Some code paths neglected to do it. This moves the damage removal to one
central location.
2016-06-20 13:39:36 -07:00
Matt Brubeck
8f7cfb1b06
Remove unnecessary mut in TableFlow
2016-06-20 13:19:42 -07:00
Ms2ger
6528bee84f
Introduce a layout_thread crate; drop the dependency of layout on script.
2016-06-20 21:23:44 +02:00
Ms2ger
7414edab05
Move DISPLAY_PORT_SIZE_FACTOR to block.rs.
2016-06-20 21:23:43 +02:00
Ms2ger
55a93107ce
Move LayoutThreadData to query.rs.
2016-06-20 21:23:42 +02:00
Ms2ger
b56821a01f
Move CSSErrorReporter to script_layout_interface.
2016-06-20 19:08:13 +02:00
Ms2ger
9e2e0ff98c
Move the remainder of layout_interface into script_layout_interface.
2016-06-20 19:08:12 +02:00
Ms2ger
2c50318ee7
Move is_image_data to script_layout_interface.
2016-06-20 19:08:11 +02:00
Ms2ger
65b93c20b7
Remove the layout_wrapper re-exports from layout::wrapper.
2016-06-20 19:08:10 +02:00
Ms2ger
0c506cf1df
Remove the wrapper::ServoThreadSafeLayoutNode re-export.
2016-06-20 19:08:09 +02:00
Ms2ger
86bfd2cc9f
Move LayoutRPC to script_layout_interface.
2016-06-20 19:08:07 +02:00
Ms2ger
0616a60fd9
Move ServoLayoutNode and related structs to script.
2016-06-20 19:08:05 +02:00
Ms2ger
0c726cfe6b
Make RecalcStyleAndConstructFlows generic over the LayoutNode implementation.
2016-06-20 19:08:04 +02:00
Ms2ger
a8bb3d8d22
Make ServoLayoutNode::debug_id() less convoluted.
2016-06-20 19:08:03 +02:00
Ms2ger
7de3d165ad
Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged().
2016-06-20 19:08:02 +02:00
Ms2ger
14a7e9bce1
Remove unused OpaqueNodeMethods::from_script_node.
2016-06-20 19:08:01 +02:00
Ms2ger
0d0b268138
Move LayoutNode and related traits to script_layout_interface.
2016-06-20 19:07:54 +02:00
Ms2ger
000e2de57a
Move HTMLCanvasData to script_layout_interface.
2016-06-20 19:04:41 +02:00
Ms2ger
6b847eb93a
Introduce LayoutNodeType and LayoutElementType enums.
2016-06-20 19:02:49 +02:00
Ms2ger
afc7118a67
Introduce a ThreadSafeLayoutNodeHelpers trait for methods to stay in layout.
2016-06-20 19:02:48 +02:00
Ms2ger
dac8878467
Introduce ThreadSafeLayoutNode::borrow_layout_data_unchecked.
2016-06-20 19:02:47 +02:00
Ms2ger
1039de8e7d
Introduce a node_text_content method.
2016-06-20 19:02:46 +02:00
Ms2ger
16d6555f4d
Move some more methods into the LayoutNodeLayoutData trait.
2016-06-20 19:02:45 +02:00
Ms2ger
c910ef2072
Introduce a LayoutNodeLayoutData trait for methods to stay in layout.
2016-06-20 19:02:44 +02:00
Ms2ger
310cb5a326
Introduce get_style_and_layout_data() methods.
2016-06-20 19:02:43 +02:00
Ms2ger
8b05833e52
Split initialize_data into two.
...
The first one handles the layout-specific part, and calls the second one to
handle the script-specific part.
2016-06-20 19:02:42 +02:00
Ms2ger
d50c166786
Use get_style_data() where possible.
2016-06-20 19:02:41 +02:00
Ms2ger
72632ac16d
Implement get_style_data() methods.
2016-06-20 19:02:40 +02:00
Ms2ger
bea96f60e3
Introduce PartialStyleAndLayoutData.
2016-06-20 19:02:39 +02:00
Ms2ger
6aaf3e6a01
Move OpaqueStyleAndLayoutData to script_layout_interface.
2016-06-20 19:02:38 +02:00
Ms2ger
5c03dd8eb1
Introduce a script_layout_interface crate and move RestyleDamage to it.
2016-06-20 19:02:36 +02:00
bors-servo
c270622bfd
Auto merge of #11800 - Ms2ger:place_float_if_applicable, r=nox
...
Remove unused argument to place_float_if_applicable.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11800 )
<!-- Reviewable:end -->
2016-06-20 08:17:13 -05:00
bors-servo
881c02ec89
Auto merge of #11798 - notriddle:input_caret, r=nox
...
Account for the font of empty input fields
The font of empty fragments is not accounted for in layout. This behavior is incorrect when part of an input field.
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11653
- [X] There are tests for these changes
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11798 )
<!-- Reviewable:end -->
2016-06-20 05:58:23 -05:00
Ms2ger
2383cb2eee
Remove unused argument to place_float_if_applicable.
2016-06-20 12:37:56 +02:00
Keith Yeung
d66a04ea6c
Update string_cache to v0.2.20
2016-06-20 12:17:28 +08:00
Michael Howell
4717cea51c
Account for the font of empty input fields
...
Fixes #11653
2016-06-19 13:06:06 -07:00
Michael Howell
b082dceebc
Alignment is wrong.
2016-06-18 11:49:38 -07:00
ddh
5c7943217b
Added DoubleEndedIterator for MutFlowListIterator
2016-06-17 14:57:41 +01:00