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:
Emilio Cobos Álvarez 2017-08-22 15:07:33 +02:00
parent a98fd5e2b6
commit e1517d62af
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 25 additions and 62 deletions

View file

@ -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,