mirror of
https://github.com/servo/servo.git
synced 2025-08-25 07:08:21 +01:00
style: Simplify and improve the per origin stylesheet invalidation setup.
MozReview-Commit-ID: adDDRhNnOw Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
a98fd5e2b6
commit
e1517d62af
2 changed files with 25 additions and 62 deletions
|
@ -40,6 +40,7 @@ impl Origin {
|
|||
|
||||
bitflags! {
|
||||
/// A set of origins. This is equivalent to Gecko's OriginFlags.
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
pub flags OriginSet: u8 {
|
||||
/// https://drafts.csswg.org/css-cascade/#cascade-origin-user-agent
|
||||
const ORIGIN_USER_AGENT = Origin::UserAgent as u8,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue