style: Remove SharedStyleContext::quirks_mode.

This commit is contained in:
Emilio Cobos Álvarez 2017-08-25 12:22:31 +02:00
parent 772a8464eb
commit 723d31a4d8
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
7 changed files with 16 additions and 25 deletions

View file

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