mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade WebRender to e491e1ae637b2eed1e7195855d88357e5eb3ddf9 (#30323)
* Upgrade vendored version of WebRender * Patch WebRender: upgrade version of gleam * Restore hit testing implementation * Fix WebRender warnings * Adapt Servo to new WebRender * Update results * Add a workaround for #30313 This slightly expands text boundaries in order to take into account the fact that layout isn't measuring glyph boundaries.
This commit is contained in:
parent
c079acb3c3
commit
a9d37cb85a
563 changed files with 48524 additions and 51657 deletions
|
@ -95,7 +95,7 @@ use style::traversal_flags::TraversalFlags;
|
|||
use style_traits::CSSPixel;
|
||||
use style_traits::DevicePixel;
|
||||
use style_traits::SpeculativePainter;
|
||||
use webrender_api::{units, HitTestFlags, ScrollClamping};
|
||||
use webrender_api::{units, HitTestFlags};
|
||||
|
||||
/// Information needed by the layout thread.
|
||||
pub struct LayoutThread {
|
||||
|
@ -1173,11 +1173,8 @@ impl LayoutThread {
|
|||
.insert(state.scroll_id, state.scroll_offset);
|
||||
|
||||
let point = Point2D::new(-state.scroll_offset.x, -state.scroll_offset.y);
|
||||
self.webrender_api.send_scroll_node(
|
||||
units::LayoutPoint::from_untyped(point),
|
||||
state.scroll_id,
|
||||
ScrollClamping::ToContentBounds,
|
||||
);
|
||||
self.webrender_api
|
||||
.send_scroll_node(units::LayoutPoint::from_untyped(point), state.scroll_id);
|
||||
}
|
||||
|
||||
fn set_scroll_states<'a, 'b>(
|
||||
|
@ -1284,7 +1281,7 @@ impl LayoutThread {
|
|||
.maybe_observe_paint_time(self, epoch, is_contentful);
|
||||
|
||||
self.webrender_api
|
||||
.send_display_list(display_list.compositor_info, display_list.wr.finalize());
|
||||
.send_display_list(display_list.compositor_info, display_list.wr.finalize().1);
|
||||
|
||||
self.update_iframe_sizes(iframe_sizes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue