DescriptionIntroduce deviceDependentMediaQueries (similar to viewportDependent).
When DevTools mobile device emulation is on, page resize also means
device size has change, and therefore device-dependent media queries
should be re-evaluated similarly to viewport-dependent ones.
Previous solution for this was forcing styles reset on each resize
while DevTools emulation was enabled, which turned out to be very slow.
Now DevToolsEmulator uses setting resizeIsDeviceSizeChange to control
new behavior.
BUG=540864
TEST=DeviceEmulationTest.DeviceSizeInvalidatedOnResize
Committed: https://crrev.com/7cb1e690280683811b7ca034d5ac9090927a9398
Cr-Commit-Position: refs/heads/master@{#369316}
Patch Set 1 #
Total comments: 1
Patch Set 2 : review fixes #Messages
Total messages: 20 (9 generated)
|