mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update WR (ellipse border-radius clip, preserve-3d functionality).
This commit is contained in:
parent
a51da06dd9
commit
d175986501
12 changed files with 100 additions and 104 deletions
|
@ -48,6 +48,16 @@ pub struct DisplayList {
|
|||
}
|
||||
|
||||
impl DisplayList {
|
||||
/// Return the bounds of this display list based on the dimensions of the root
|
||||
/// stacking context.
|
||||
pub fn bounds(&self) -> Rect<Au> {
|
||||
match self.list.get(0) {
|
||||
Some(&DisplayItem::PushStackingContext(ref item)) => item.stacking_context.bounds,
|
||||
Some(_) => unreachable!("Root element of display list not stacking context."),
|
||||
None => Rect::zero(),
|
||||
}
|
||||
}
|
||||
|
||||
// Returns the text index within a node for the point of interest.
|
||||
pub fn text_index(&self,
|
||||
node: OpaqueNode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue