mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Eliminate ScrollRootId
Just use WebRender's ClipId directly. This will allow us to create and use ReferenceFrames in the future, if we need to do that. It will also make it easier to have Servo responsible for creating the root scrolling area, which will allow removing some old hacks in the future.
This commit is contained in:
parent
7919e591a4
commit
d150cc9f95
24 changed files with 226 additions and 281 deletions
|
@ -33,6 +33,7 @@ extern crate serde_derive;
|
|||
extern crate servo_url;
|
||||
extern crate style_traits;
|
||||
extern crate time;
|
||||
extern crate webrender_traits;
|
||||
extern crate webvr_traits;
|
||||
|
||||
mod script_msg;
|
||||
|
@ -47,7 +48,6 @@ use euclid::rect::Rect;
|
|||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::TypedSize2D;
|
||||
use gfx_traits::Epoch;
|
||||
use gfx_traits::ScrollRootId;
|
||||
use heapsize::HeapSizeOf;
|
||||
use hyper::header::Headers;
|
||||
use hyper::method::Method;
|
||||
|
@ -71,6 +71,7 @@ use std::sync::Arc;
|
|||
use std::sync::mpsc::{Receiver, Sender};
|
||||
use style_traits::{CSSPixel, UnsafeNode};
|
||||
use webdriver_msg::{LoadStatus, WebDriverScriptCommand};
|
||||
use webrender_traits::ClipId;
|
||||
use webvr_traits::{WebVREvent, WebVRMsg};
|
||||
|
||||
pub use script_msg::{LayoutMsg, ScriptMsg, EventResult, LogEntry};
|
||||
|
@ -662,7 +663,7 @@ pub enum AnimationTickType {
|
|||
#[derive(Copy, Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct StackingContextScrollState {
|
||||
/// The ID of the scroll root.
|
||||
pub scroll_root_id: ScrollRootId,
|
||||
pub scroll_root_id: ClipId,
|
||||
/// The scrolling offset of this stacking context.
|
||||
pub scroll_offset: Point2D<f32>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue