mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Use LayoutRects for bounds and overflow in display lists
Convert text runs to glyphs in display list builder. Remove ComplexClippingRegion and use the WebRender type.
This commit is contained in:
parent
cf4f89c36e
commit
46ada747b0
6 changed files with 203 additions and 292 deletions
|
@ -68,6 +68,7 @@ use layout::context::LayoutContext;
|
|||
use layout::context::RegisteredPainter;
|
||||
use layout::context::RegisteredPainters;
|
||||
use layout::context::malloc_size_of_persistent_local_context;
|
||||
use layout::display_list::ToLayout;
|
||||
use layout::display_list::WebRenderDisplayListConverter;
|
||||
use layout::flow::{Flow, GetBaseFlow, ImmutableFlowUtils, MutableOwnedFlowUtils};
|
||||
use layout::flow_ref::FlowRef;
|
||||
|
@ -986,7 +987,7 @@ impl LayoutThread {
|
|||
}
|
||||
};
|
||||
|
||||
let origin = Rect::new(Point2D::new(Au(0), Au(0)), root_size);
|
||||
let origin = Rect::new(Point2D::new(Au(0), Au(0)), root_size).to_layout();
|
||||
build_state.root_stacking_context.bounds = origin;
|
||||
build_state.root_stacking_context.overflow = origin;
|
||||
|
||||
|
@ -1364,7 +1365,7 @@ impl LayoutThread {
|
|||
rw_data.display_list
|
||||
.as_ref()
|
||||
.expect("Tried to hit test with no display list")
|
||||
.text_index(opaque_node, &point_in_node)
|
||||
.text_index(opaque_node, point_in_node.to_layout())
|
||||
);
|
||||
},
|
||||
ReflowGoal::NodeGeometryQuery(node) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue