mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add layout RPC query for getting an element's style
This enables us to implement Element::has_css_layout_box() in a more direct way, and also enables us to remove some of the existing more specific queries. Fixes #19811.
This commit is contained in:
parent
c9ba16f9fb
commit
fe583fc5d0
10 changed files with 88 additions and 136 deletions
|
@ -216,6 +216,12 @@ impl Display {
|
|||
other => other,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if the value is `None`
|
||||
#[inline]
|
||||
pub fn is_none(&self) -> bool {
|
||||
*self == Display::None
|
||||
}
|
||||
}
|
||||
|
||||
/// A specified value for the `vertical-align` property.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue