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

Issue 427683002: Bug fix - rem & ch in MQs/sizes treated as unknown units (Closed)

Created:
6 years, 4 months ago by Yoav Weiss
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Bug fix - rem & ch in MQs/sizes treated as unknown units 'rem' and 'ch' units were unrecognized when used inside MQs/sizes, since they were not in the unit table. I've added them and fixed another bug related to CH and MQs. I've also added the 'fr' and 'turn' units to the unit table, even though there aren't valid MQs that can use them, since some other code may use the unit table in the future, and they should be there for completeness. BUG=398185 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179103

Patch Set 1 #

Patch Set 2 : Fix ch as well #

Total comments: 2

Patch Set 3 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M Source/core/css/CSSPrimitiveValue.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/MediaQueryExp.cpp View 1 2 1 chunk +19 lines, -1 line 0 comments Download
M Source/core/css/MediaQuerySetTest.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/parser/SizesAttributeParserTest.cpp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yoav Weiss
6 years, 4 months ago (2014-07-28 22:15:20 UTC) #1
alancutter (OOO until 2018)
lgtm with tiny style nits. https://codereview.chromium.org/427683002/diff/20001/Source/core/css/MediaQueryExp.cpp File Source/core/css/MediaQueryExp.cpp (right): https://codereview.chromium.org/427683002/diff/20001/Source/core/css/MediaQueryExp.cpp#newcode73 Source/core/css/MediaQueryExp.cpp:73: || unit == CSSPrimitiveValue::CSS_REMS ...
6 years, 4 months ago (2014-07-29 03:25:15 UTC) #2
Yoav Weiss
On 2014/07/29 03:25:15, alancutter wrote: > lgtm with tiny style nits. > > https://codereview.chromium.org/427683002/diff/20001/Source/core/css/MediaQueryExp.cpp > ...
6 years, 4 months ago (2014-07-29 06:19:47 UTC) #3
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 4 months ago (2014-07-29 06:21:07 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/427683002/40001
6 years, 4 months ago (2014-07-29 06:22:18 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-07-29 07:22:19 UTC) #6
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 07:45:20 UTC) #7
Message was sent while issue was closed.
Change committed as 179103

Powered by Google App Engine
This is Rietveld 408576698