mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Added Document's quirks mode getter
This commit is contained in:
parent
c9716df7ed
commit
5eee401403
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,10 @@ impl Document {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn quirks_mode(&self) -> QuirksMode {
|
||||
self.extra.quirks_mode
|
||||
}
|
||||
|
||||
pub fn set_quirks_mode(&mut self, mode: QuirksMode) {
|
||||
self.extra.quirks_mode = mode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue