mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Replace gfx_traits::ScrollPolicy by webrender_traits::ScrollPolicy.
This commit is contained in:
parent
8e12a11da9
commit
5d2a68033a
4 changed files with 8 additions and 22 deletions
|
@ -19,7 +19,7 @@ use euclid::{Matrix4D, Point2D, Rect, Size2D};
|
|||
use euclid::num::{One, Zero};
|
||||
use euclid::rect::TypedRect;
|
||||
use euclid::side_offsets::SideOffsets2D;
|
||||
use gfx_traits::{ScrollPolicy, ScrollRootId, StackingContextId};
|
||||
use gfx_traits::{ScrollRootId, StackingContextId};
|
||||
use gfx_traits::print_tree::PrintTree;
|
||||
use ipc_channel::ipc::IpcSharedMemory;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
|
@ -34,7 +34,7 @@ use style::computed_values::{border_style, filter, image_rendering, mix_blend_mo
|
|||
use style_traits::cursor::Cursor;
|
||||
use text::TextRun;
|
||||
use text::glyph::ByteIndex;
|
||||
use webrender_traits::{self, ColorF, GradientStop, WebGLContextId};
|
||||
use webrender_traits::{self, ColorF, GradientStop, ScrollPolicy, WebGLContextId};
|
||||
|
||||
pub use style::dom::OpaqueNode;
|
||||
|
||||
|
@ -129,7 +129,7 @@ impl DisplayList {
|
|||
// Convert the parent translated point into stacking context local transform space if the
|
||||
// stacking context isn't fixed. If it's fixed, we need to use the client point anyway.
|
||||
debug_assert!(stacking_context.context_type == StackingContextType::Real);
|
||||
let is_fixed = stacking_context.scroll_policy == ScrollPolicy::FixedPosition;
|
||||
let is_fixed = stacking_context.scroll_policy == ScrollPolicy::Fixed;
|
||||
let translated_point = if is_fixed {
|
||||
*client_point
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue