mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Record viewport unit usage and generate proper restyle hint.
This commit is contained in:
parent
bf16b146e8
commit
388875ca44
4 changed files with 30 additions and 5 deletions
|
@ -696,6 +696,10 @@ impl MaybeNew for ViewportConstraints {
|
|||
//
|
||||
// Note: DEVICE-ADAPT § 5. states that relative length values are
|
||||
// resolved against initial values
|
||||
//
|
||||
// Note, we set used_viewport_size flag for Gecko in au_viewport_size.
|
||||
// If we ever start supporting ViewportRule in Gecko, we probably want
|
||||
// to avoid doing so at this place.
|
||||
let initial_viewport = device.au_viewport_size();
|
||||
|
||||
let provider = get_metrics_provider_for_product();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue