mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make MatchingContext::quirks_mode field private, add read-only accessor.
This commit is contained in:
parent
700aaf2bd6
commit
9316c41bf7
2 changed files with 12 additions and 6 deletions
|
@ -97,8 +97,8 @@ pub struct MatchingContext<'a> {
|
|||
/// `RelevantLinkStatus` which tracks the status for the _current_ selector
|
||||
/// only.)
|
||||
pub relevant_link_found: bool,
|
||||
/// The quirks mode of the document.
|
||||
pub quirks_mode: QuirksMode,
|
||||
|
||||
quirks_mode: QuirksMode,
|
||||
}
|
||||
|
||||
impl<'a> MatchingContext<'a> {
|
||||
|
@ -134,4 +134,10 @@ impl<'a> MatchingContext<'a> {
|
|||
quirks_mode: quirks_mode,
|
||||
}
|
||||
}
|
||||
|
||||
/// The quirks mode of the document.
|
||||
#[inline]
|
||||
pub fn quirks_mode(&self) -> QuirksMode {
|
||||
self.quirks_mode
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue