зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #7808 - Start the constellation with the correct pixel ratio (from mbrubeck:headless-dpr); r=mrobinson
This may mitigate race conditions like #7730. r? @mrobinson Source-Repo: https://github.com/servo/servo Source-Revision: 9b37de965c9e7b2b906685e2f0ee915f1c901fb5
This commit is contained in:
Родитель
7124588039
Коммит
cb9647d82e
|
@ -271,7 +271,8 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
ScaleFactor::new(1.0),
|
||||
initial_viewport: opts::get().initial_window_size.as_f32() *
|
||||
ScaleFactor::new(1.0),
|
||||
device_pixel_ratio: ScaleFactor::new(1.0),
|
||||
device_pixel_ratio:
|
||||
ScaleFactor::new(opts::get().device_pixels_per_px.unwrap_or(1.0)),
|
||||
},
|
||||
phantom: PhantomData,
|
||||
clipboard_ctx: if state.supports_clipboard {
|
||||
|
|
Загрузка…
Ссылка в новой задаче