Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Issue 2430923005: MediaValuesInitialViewport passed to MediaQueryEvaluator as bool. (Closed)

Created:
4 years, 2 months ago by rune
Modified:
4 years, 2 months ago
CC:
chromium-reviews, kenneth.christiansen, Yoav Weiss, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, kinuko+watch, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MediaValuesInitialViewport 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -12 lines) Patch
M third_party/WebKit/Source/core/css/MediaQueryEvaluator.h View 3 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp View 2 chunks +9 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryEvaluatorTest.cpp View 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaValuesInitialViewport.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/MediaValuesInitialViewport.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 13 (7 generated)
rune
ptal
4 years, 2 months ago (2016-10-20 08:01:24 UTC) #5
rune
4 years, 2 months ago (2016-10-20 11:07:22 UTC) #7
meade_UTC10
lgtm
4 years, 2 months ago (2016-10-21 02:10:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2430923005/1
4 years, 2 months ago (2016-10-21 05:37:29 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-21 07:20:54 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:28:04 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ecc4112fc59bb43d04670afae1b439ebc8e9f2e4
Cr-Commit-Position: refs/heads/master@{#426747}

Powered by Google App Engine
This is Rietveld 408576698