mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Rename PSEUDO_CLASS_INTERNAL to PSEUDO_CLASS_ENABLED_IN_UA_SHEETS
Some of the pseudo classes in nsCSSPseudoClassList are enabled only in UA sheets but not in chrome. Rename the "internal" flag to "enabled in UA sheets" to make the semantics clearer. MozReview-Commit-ID: LKIiPk4pHFv
This commit is contained in:
parent
3c28c7b091
commit
fd3b399d26
2 changed files with 22 additions and 22 deletions
|
@ -20,7 +20,7 @@ pub use gecko::snapshot::SnapshotMap;
|
|||
bitflags! {
|
||||
flags NonTSPseudoClassFlag: u8 {
|
||||
// See NonTSPseudoClass::is_internal()
|
||||
const PSEUDO_CLASS_INTERNAL = 0x01,
|
||||
const PSEUDO_CLASS_ENABLED_IN_UA_SHEETS = 1 << 0,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ impl NonTSPseudoClass {
|
|||
pub fn is_internal(&self) -> bool {
|
||||
macro_rules! check_flag {
|
||||
(_) => (false);
|
||||
($flags:expr) => ($flags.contains(PSEUDO_CLASS_INTERNAL));
|
||||
($flags:expr) => ($flags.contains(PSEUDO_CLASS_ENABLED_IN_UA_SHEETS));
|
||||
}
|
||||
macro_rules! pseudo_class_check_internal {
|
||||
(bare: [$(($css:expr, $name:ident, $gecko_type:tt, $state:tt, $flags:tt),)*],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue