aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2018-01-16 18:47:05 +0100
committerMartin Robinson <mrobinson@igalia.com>2018-02-06 15:10:35 +0100
commit99eb457fc7afb0cd4178ae955d0d998e253b25f2 (patch)
tree7be3fa7b2607a271983fede7720c984610e4b255 /components/script/dom/document.rs
parent984f3ccc414bf420787efcb10eebe48cf2cbca36 (diff)
downloadservo-99eb457fc7afb0cd4178ae955d0d998e253b25f2.tar.gz
servo-99eb457fc7afb0cd4178ae955d0d998e253b25f2.zip
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.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 436d4e71d1a..0ed2c25ff4b 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -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());
}