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

Issue 240453010: Avoid use of CSSValue in MediaQueryExp and MediaQueryEvaluator (Closed)

Created:
6 years, 8 months ago by Yoav Weiss
Modified:
6 years, 8 months ago
Reviewers:
eseidel
CC:
blink-reviews, kenneth.christiansen, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis, Mads Ager (chromium)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Avoid use of CSSValue in MediaQueryExp and MediaQueryEvaluator Since the new MediaQueryParser should be thread-safe and CSSPrimitiveValue may not be, MediaQueryExp should not generate a CSSValue when created by MediaQueryParser and SizesAttributeParser. This CL fixes that. BUG=365605 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172457

Patch Set 1 #

Patch Set 2 : Working cssText #

Patch Set 3 : Added back the old createIfValid for the Bison parser #

Patch Set 4 : Removed unused function #

Patch Set 5 : BisonParser to use ExpValue as well #

Patch Set 6 : Fixed console warning #

Patch Set 7 : Removed CSSValue entirely #

Patch Set 8 : Use the new CSSPrimitiveValue static funcs #

Total comments: 4

Patch Set 9 : Review comments #

Total comments: 2

Patch Set 10 : Removed default from switch #

Total comments: 2

Patch Set 11 : Review comments #

Patch Set 12 : Fix previous patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -236 lines) Patch
M Source/core/css/CSSPrimitiveValue.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -9 lines 0 comments Download
M Source/core/css/CSSPrimitiveValue.cpp View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +105 lines, -64 lines 0 comments Download
M Source/core/css/MediaList.cpp View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -13 lines 0 comments Download
M Source/core/css/MediaQueryEvaluator.cpp View 1 2 3 4 5 6 7 8 9 10 17 chunks +99 lines, -104 lines 0 comments Download
M Source/core/css/MediaQueryExp.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +48 lines, -12 lines 0 comments Download
M Source/core/css/MediaQueryExp.cpp View 1 2 3 4 5 6 7 8 9 10 6 chunks +69 lines, -32 lines 0 comments Download
M Source/core/css/MediaQuerySetTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/MediaQueryToken.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Yoav Weiss
6 years, 8 months ago (2014-04-22 11:57:55 UTC) #1
eseidel
https://codereview.chromium.org/240453010/diff/80002/Source/core/css/CSSPrimitiveValue.h File Source/core/css/CSSPrimitiveValue.h (right): https://codereview.chromium.org/240453010/diff/80002/Source/core/css/CSSPrimitiveValue.h#newcode216 Source/core/css/CSSPrimitiveValue.h:216: static bool isDotsPerInch(unsigned short type) { return type == ...
6 years, 8 months ago (2014-04-22 16:22:23 UTC) #2
Yoav Weiss
On 2014/04/22 16:22:23, eseidel wrote: > https://codereview.chromium.org/240453010/diff/80002/Source/core/css/CSSPrimitiveValue.h > File Source/core/css/CSSPrimitiveValue.h (right): > > https://codereview.chromium.org/240453010/diff/80002/Source/core/css/CSSPrimitiveValue.h#newcode216 > ...
6 years, 8 months ago (2014-04-22 16:54:06 UTC) #3
Yoav Weiss
On 2014/04/22 16:54:06, Yoav Weiss wrote: > On 2014/04/22 16:22:23, eseidel wrote: > > > ...
6 years, 8 months ago (2014-04-23 08:22:28 UTC) #4
eseidel
https://codereview.chromium.org/240453010/diff/140001/Source/core/css/CSSPrimitiveValue.cpp File Source/core/css/CSSPrimitiveValue.cpp (right): https://codereview.chromium.org/240453010/diff/140001/Source/core/css/CSSPrimitiveValue.cpp#newcode1117 Source/core/css/CSSPrimitiveValue.cpp:1117: default: Are you sure you want a default? That ...
6 years, 8 months ago (2014-04-23 16:51:04 UTC) #5
Yoav Weiss
On 2014/04/23 16:51:04, eseidel wrote: > https://codereview.chromium.org/240453010/diff/140001/Source/core/css/CSSPrimitiveValue.cpp > File Source/core/css/CSSPrimitiveValue.cpp (right): > > https://codereview.chromium.org/240453010/diff/140001/Source/core/css/CSSPrimitiveValue.cpp#newcode1117 > ...
6 years, 8 months ago (2014-04-23 20:44:23 UTC) #6
Yoav Weiss
On 2014/04/23 20:44:23, Yoav Weiss wrote: > On 2014/04/23 16:51:04, eseidel wrote: > > > ...
6 years, 8 months ago (2014-04-23 22:19:52 UTC) #7
eseidel
https://codereview.chromium.org/240453010/diff/160001/Source/core/css/CSSPrimitiveValue.cpp File Source/core/css/CSSPrimitiveValue.cpp (right): https://codereview.chromium.org/240453010/diff/160001/Source/core/css/CSSPrimitiveValue.cpp#newcode1076 Source/core/css/CSSPrimitiveValue.cpp:1076: return String("em"); You should just be able to write ...
6 years, 8 months ago (2014-04-24 00:23:59 UTC) #8
Yoav Weiss
On 2014/04/24 00:23:59, eseidel wrote: > https://codereview.chromium.org/240453010/diff/160001/Source/core/css/CSSPrimitiveValue.cpp > File Source/core/css/CSSPrimitiveValue.cpp (right): > > https://codereview.chromium.org/240453010/diff/160001/Source/core/css/CSSPrimitiveValue.cpp#newcode1076 > ...
6 years, 8 months ago (2014-04-24 05:05:30 UTC) #9
eseidel
lgtm
6 years, 8 months ago (2014-04-24 05:32:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/240453010/200001
6 years, 8 months ago (2014-04-24 05:32:37 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 06:13:23 UTC) #12
Message was sent while issue was closed.
Change committed as 172457

Powered by Google App Engine
This is Rietveld 408576698