зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1757002 - Fix incorrect scaling of large surfaces r=gfx-reviewers,aosmond
Fixes a typo introduced when rebasing the original patch Differential Revision: https://phabricator.services.mozilla.com/D139883
This commit is contained in:
Родитель
45b8401d88
Коммит
4144c8d651
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
* {
|
||||
direction: rtl;
|
||||
writing-mode: vertical-rl;
|
||||
rotate: 225.4833291380626deg 16 -117 119
|
||||
}
|
||||
* {
|
||||
padding-inline: 81%;
|
||||
border: 255pt hsl(0 35% 54% / 1%) solid;
|
||||
min-inline-size: max-content;
|
||||
margin-top: 206vmax ! important;
|
||||
margin-block-start: 94%;
|
||||
opacity: 0.4211200180067617;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</html>
|
||||
|
|
@ -209,3 +209,5 @@ load 1704321-1.html
|
|||
load 1702638.html
|
||||
load 1730695.html
|
||||
load 1745775.html
|
||||
load 1757002.html
|
||||
|
||||
|
|
|
@ -6772,7 +6772,7 @@ fn get_surface_rects(
|
|||
let task_size_f = clipped.size();
|
||||
|
||||
if task_size_f.width > MAX_SURFACE_SIZE || task_size_f.height > MAX_SURFACE_SIZE {
|
||||
let max_dimension = task_size_f.width.max(task_size_f.height);
|
||||
let max_dimension = clipped_local.width().max(clipped_local.height());
|
||||
|
||||
surface.raster_spatial_node_index = surface.surface_spatial_node_index;
|
||||
surface.device_pixel_scale = Scale::new(MAX_SURFACE_SIZE / max_dimension);
|
||||
|
|
Загрузка…
Ссылка в новой задаче