mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Remove SharedStyleContext::quirks_mode.
This commit is contained in:
parent
772a8464eb
commit
723d31a4d8
7 changed files with 16 additions and 25 deletions
|
@ -137,9 +137,6 @@ pub struct SharedStyleContext<'a> {
|
|||
/// them.
|
||||
pub timer: Timer,
|
||||
|
||||
/// The QuirksMode state which the document needs to be rendered with
|
||||
pub quirks_mode: QuirksMode,
|
||||
|
||||
/// Flags controlling how we traverse the tree.
|
||||
pub traversal_flags: TraversalFlags,
|
||||
|
||||
|
@ -174,6 +171,11 @@ impl<'a> SharedStyleContext<'a> {
|
|||
pub fn device_pixel_ratio(&self) -> ScaleFactor<f32, CSSPixel, DevicePixel> {
|
||||
self.stylist.device().device_pixel_ratio()
|
||||
}
|
||||
|
||||
/// The quirks mode of the document.
|
||||
pub fn quirks_mode(&self) -> QuirksMode {
|
||||
self.stylist.quirks_mode()
|
||||
}
|
||||
}
|
||||
|
||||
/// The structure holds various intermediate inputs that are eventually used by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue