bors-servo
9a465c5842
Auto merge of #8355 - Ms2ger:Exit, r=nox
...
Cleanup exit messages and related code.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8355 )
<!-- Reviewable:end -->
2015-11-07 22:34:45 +05:30
Till Schneidereit
f1b6c7cc99
Let Stylist compute and store viewport constraints when setting the device
2015-11-07 16:19:13 +01:00
Till Schneidereit
f173504ded
Make UA and user stylesheets static and shared by all Stylist instances
2015-11-07 15:45:27 +01:00
Ms2ger
647232a495
Wrap SharedLayoutContext::stylist in a wrapper to make it Sync.
2015-11-07 11:23:49 +01:00
Ms2ger
e9b77628ce
Wrap SharedLayoutContext::canvas_layers_sender in a Mutex.
2015-11-07 11:23:48 +01:00
Ms2ger
8fc75704c9
Wrap SharedLayoutContext::new_animations_sender in a Mutex.
2015-11-07 11:23:47 +01:00
Ms2ger
552a03fde6
Wrap SharedLayoutContext::font_cache_task in a Mutex.
2015-11-07 11:23:44 +01:00
Ms2ger
32bb4044fd
Remove unused SharedLayoutContext::constellation_chan.
2015-11-07 11:23:42 +01:00
Ms2ger
bcd541c02c
Wrap SharedLayoutContext::image_cache_sender in a Mutex.
2015-11-07 11:23:41 +01:00
Ms2ger
1c11bd09df
Remove unused SharedLayoutContext::layout_chan.
2015-11-07 11:23:39 +01:00
bors-servo
65c3185b20
Auto merge of #8341 - bholley:state_hint_selector_ordering, r=pcwalton
...
Fix restyle hints to handle non-last psuedo-selectors, and track pristine state values rather than changesets
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8341 )
<!-- Reviewable:end -->
2015-11-07 09:53:19 +05:30
bors-servo
a0221b9126
Auto merge of #8330 - Ms2ger:rm-screen_size, r=larsbergstrom
...
Remove unused LayoutTaskData::screen_size.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8330 )
<!-- Reviewable:end -->
2015-11-07 03:03:44 +05:30
Ms2ger
7d3f7220f7
Remove the unused PipelineExitType field from LayoutControlMsg::ExitNow.
2015-11-05 16:32:47 +01:00
Ms2ger
ad33d920e7
Remove the unused PipelineExitType field from layout_interface::Msg::ExitNow.
2015-11-05 16:17:51 +01:00
Ms2ger
5cd250602f
Remove the unused PipelineExitType argument to LayoutTask::exit_now.
2015-11-05 16:09:39 +01:00
Ms2ger
995d022bb9
Remove the unused PipelineExitType from LayoutToPaintMsg::Exit.
2015-11-05 16:00:06 +01:00
Ms2ger
a01fd7732d
Remove the unused Option around the IpcSender from LayoutToPaintMsg::Exit.
2015-11-05 15:48:39 +01:00
Ms2ger
61983323ae
Reorder LayoutTask::exit_now for clarity.
2015-11-05 15:47:43 +01:00
Bobby Holley
7dba4447f1
Store pristine element state rather than a set of changes.
...
This is the strategy we'll need to take for attributes, and so this change
puts us in a position to handle attributes and state the same way.
This does mean that we stop taking care to track the situations where our
state has reverted to the original state, with no net change. I think that's
probably of negligible value though.
2015-11-04 19:09:58 -08:00
Bobby Holley
77c253fd43
Load web fonts synchronously during wpt.
2015-11-04 19:01:49 -08:00
Martin Robinson
e5b2feda3f
Remove DisplayListBuildingResult
...
Always produce a DisplayList when processing nodes for display list
construction. StackingContexts are now added to the positioned content
section of DisplayLists. This makes the code a bit simpler and opens up
the possibility of producing a StackingContext in another section of
the DisplayList. This doesn't change behavior, but is a cleanup
prerequisite for proper inline stacking context support.
2015-11-04 12:52:14 -08:00
Ms2ger
631180b319
Remove unused LayoutTaskData::screen_size.
2015-11-04 11:08:46 +01:00
David Zbarsky
d95ca55f26
Allow retrieving width/height for non-positioned elements
2015-11-03 20:13:09 -08:00
Patrick Walton
6633773a58
layout: Minor whitespace cleanup.
2015-11-03 13:12:47 -08:00
Patrick Walton
3ae5f04bd1
layout: Store viewport and screen size separately.
...
Fixes a bug whereby all nodes would get unconditionally reflowed on
every layout event if the page set a viewport.
2015-11-03 13:12:45 -08:00
bors-servo
601169c0e5
Auto merge of #8290 - itsmeolivia:store-script-reflow, r=Ms2ger
...
Un-boxed ScriptReflow
As per #8238 I changed `layout_interface::Msg::Reflow` to store `ScriptReflow` rather than `Box<ScriptReflow>`
I ran the tests and believe everything passed but this is my first commit to the project so sorry if I messed up the protocol!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8290 )
<!-- Reviewable:end -->
2015-11-01 14:50:17 +05:30
Olivia Nordquist
aebf87cf5b
Un-boxed ScriptReflow
2015-10-31 22:29:16 -07:00
Bobby Holley
45fc7f2930
Implement restyle hints for state changes.
2015-10-31 14:28:52 -07:00
Bobby Holley
79ac365a68
Move EventState to rust-selectors.
2015-10-30 21:02:35 -07:00
bors-servo
6cc8186481
Auto merge of #8187 - Ms2ger:layoutnode-new, r=pcwalton
...
Introduce a Layoutnode::new function and use it.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8187 )
<!-- Reviewable:end -->
2015-10-30 13:43:17 +05:30
bors-servo
b6bcccb204
Auto merge of #8212 - Ms2ger:reflow-root, r=pcwalton
...
Remove SharedLayoutContext::reflow_root.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8212 )
<!-- Reviewable:end -->
2015-10-30 05:22:54 +05:30
Ms2ger
cce510900e
Use LayoutNode::new to avoid transmute calls in LayoutTask.
2015-10-29 16:55:27 +01:00
Ms2ger
ee0b0c81d1
Pass a LayoutNode to LayoutTask::dirty_all_nodes.
...
There is no point in passing a mutable reference to what is essentially
already a pointer.
2015-10-29 14:29:17 +01:00
Bobby Holley
069c40f788
Check modified event state from layout and dirty it there.
...
This adds some overhead, but also provides the small performance benefit of
avoiding dirtying in the case where an event state is toggled an even
number of times between reflows.
The main benefit here though is that it sets us up to be smarter about
what we mark as dirty using restyle hints.
2015-10-27 12:48:48 -07:00
Bobby Holley
441c84d75d
Pass the document instead of the documentElement to reflow.
2015-10-27 12:41:16 -07:00
Bobby Holley
85596b5510
Use an RAII guard to join the script task.
2015-10-27 12:41:14 -07:00
Ms2ger
c693e13a2c
Remove the reflow root from SharedLayoutContext.
2015-10-26 17:51:28 +01:00
Ms2ger
68830ed66f
Return the result from process_content_box_request.
2015-10-26 10:41:51 +01:00
Ms2ger
60e60b6f8a
Return the result from process_content_boxes_request.
2015-10-26 10:41:50 +01:00
Ms2ger
a84055d8fe
Return the result from process_node_geometry_request.
2015-10-26 10:41:50 +01:00
Ms2ger
9754bfc330
Return the result from process_resolved_style_request.
2015-10-26 10:41:49 +01:00
Ms2ger
16b6e812a2
Return the result from process_offset_parent_query.
2015-10-26 10:41:48 +01:00
Ms2ger
4cac3f4f97
Remove a pointless clone() from add_font_face_rules.
2015-10-25 22:46:34 +01:00
Ms2ger
c86141c55a
Remove an unnecessary Atom::clone() call.
2015-10-25 11:08:15 +01:00
bors-servo
4d737b51bb
Auto merge of #8155 - Ms2ger:join, r=jdm
...
Remove Window::layout_join_port.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8155 )
<!-- Reviewable:end -->
2015-10-23 04:50:38 -06:00
Ms2ger
9ad69586d1
Remove the ConstellationControlMsg::ReflowComplete message.
2015-10-22 16:12:58 +02:00
Ms2ger
28c738455e
Use the select!{} macro in LayoutTask::handle_request.
2015-10-22 14:18:22 +02:00
Bobby Holley
228eff7272
Remove HAS_DIRTY_SIBLINGS.
...
This isn't doing anything right now, and we're not even setting it properly
in dirty_impl the |dirty_subtree(self)| was causing us to hit the skip case
for step 3.
2015-10-21 09:56:07 -07:00
Corey Farwell
20beaf5af3
Fix issues found by rust-clippy
2015-10-12 20:21:49 -04:00
bors-servo
098bdb5f22
Auto merge of #7807 - glennw:pid, r=jdm
...
Make it possible for iframes to create their own pipeline ID.
This doesn't change any functionality, but it's the first step towards removing SubpageId.
Adding this change now will allow us to gradually change over code referencing subpage id rather than in one massive PR.
Introduces a namespace for pipeline ID generation - there is a namespace for the constellation thread, and one per script thread.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7807 )
<!-- Reviewable:end -->
2015-10-06 01:08:32 -06:00