diff options
Diffstat (limited to 'components/layout_thread')
-rw-r--r-- | components/layout_thread/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 949ee05e5dc..51e07a9c044 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -87,6 +87,7 @@ use style::logical_geometry::LogicalPoint; use style::media_queries::{Device, MediaList, MediaType}; use style::properties::style_structs::Font; use style::properties::{ComputedValues, PropertyId}; +use style::queries::values::PrefersColorScheme; use style::selector_parser::{PseudoElement, SnapshotMap}; use style::servo::media_queries::FontMetricsProvider; use style::servo::restyle_damage::ServoRestyleDamage; @@ -591,6 +592,8 @@ impl LayoutThread { Scale::new(window_size.device_pixel_ratio.get()), Box::new(LayoutFontMetricsProvider), ComputedValues::initial_values_with_font_override(font), + // TODO: obtain preferred color scheme from embedder + PrefersColorScheme::Light, ); LayoutThread { @@ -1414,6 +1417,8 @@ impl LayoutThread { Scale::new(window_size_data.device_pixel_ratio.get()), Box::new(LayoutFontMetricsProvider), self.stylist.device().default_computed_values().to_arc(), + // TODO: obtain preferred color scheme from embedder + PrefersColorScheme::Light, ); // Preserve any previously computed root font size. |