mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Not all computed value flags are really inherited.
This fixes the fishiness I noticed in: https://bugzilla.mozilla.org/show_bug.cgi?id=1407832
This commit is contained in:
parent
8b366a7441
commit
b73b5b581b
3 changed files with 11 additions and 3 deletions
|
@ -64,3 +64,11 @@ bitflags! {
|
|||
const IS_STYLE_IF_VISITED = 1 << 9,
|
||||
}
|
||||
}
|
||||
|
||||
impl ComputedValueFlags {
|
||||
/// Returns the flags that are inherited.
|
||||
#[inline]
|
||||
pub fn inherited(self) -> Self {
|
||||
self & !(INHERITS_DISPLAY | INHERITS_CONTENT | INHERITS_RESET_STYLE)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue