mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
Use a new id type for tracking scrolling areas
This is a step in disassociating scrolling areas from stacking contexts. Now scroll areas are defined by unique ids, which means that in the future stacking context will be able to contain more than one.
This commit is contained in:
parent
fbec79e920
commit
71d285af80
22 changed files with 242 additions and 92 deletions
|
@ -45,7 +45,7 @@ use euclid::scale_factor::ScaleFactor;
|
|||
use euclid::size::TypedSize2D;
|
||||
use gfx_traits::DevicePixel;
|
||||
use gfx_traits::Epoch;
|
||||
use gfx_traits::StackingContextId;
|
||||
use gfx_traits::ScrollRootId;
|
||||
use heapsize::HeapSizeOf;
|
||||
use hyper::header::Headers;
|
||||
use hyper::method::Method;
|
||||
|
@ -600,8 +600,8 @@ pub enum AnimationTickType {
|
|||
/// The scroll state of a stacking context.
|
||||
#[derive(Copy, Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct StackingContextScrollState {
|
||||
/// The ID of the stacking context.
|
||||
pub stacking_context_id: StackingContextId,
|
||||
/// The ID of the scroll root.
|
||||
pub scroll_root_id: ScrollRootId,
|
||||
/// The scrolling offset of this stacking context.
|
||||
pub scroll_offset: Point2D<f32>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue