mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update WebRender
This allows servo to use the ExternalScrollId API from WebRender fixing some issues related to duplicate scroll root ids. Fixes #17176. Fixes #19287. Fixes #19648.
This commit is contained in:
parent
984f3ccc41
commit
99eb457fc7
19 changed files with 154 additions and 119 deletions
|
@ -141,7 +141,6 @@ use time;
|
|||
use timers::OneshotTimerCallback;
|
||||
use url::Host;
|
||||
use url::percent_encoding::percent_decode;
|
||||
use webrender_api::ClipId;
|
||||
|
||||
/// The number of times we are allowed to see spurious `requestAnimationFrame()` calls before
|
||||
/// falling back to fake ones.
|
||||
|
@ -730,11 +729,10 @@ impl Document {
|
|||
if let Some((x, y)) = point {
|
||||
// Step 3
|
||||
let global_scope = self.window.upcast::<GlobalScope>();
|
||||
let webrender_pipeline_id = global_scope.pipeline_id().to_webrender();
|
||||
self.window.update_viewport_for_scroll(x, y);
|
||||
self.window.perform_a_scroll(x,
|
||||
y,
|
||||
ClipId::root_scroll_node(webrender_pipeline_id),
|
||||
global_scope.pipeline_id().root_scroll_id(),
|
||||
ScrollBehavior::Instant,
|
||||
target.r());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue