DescriptionMediaValuesInitialViewport passed to MediaQueryEvaluator as bool.
The test coverage for [1] was not good enough. We tried to pass a
MediaValues pointer into the MediaQueryEvaluator constructor, but since
none of the constructors took such a type, it was converted into a bool
for which there was a constructor.
I'm planning to change the bool parameter to an enum in a follow-up CL
to avoid such mistakes in the future.
[1] https://codereview.chromium.org/2414343002/
R=timloh@chromium.org
BUG=332763
Committed: https://crrev.com/ecc4112fc59bb43d04670afae1b439ebc8e9f2e4
Cr-Commit-Position: refs/heads/master@{#426747}
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 13 (7 generated)
|