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

Issue 225293006: Moved MQ parsing block tracking to tokenizer (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
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Moved MQ parsing block tracking to tokenizer For better spec compliance of the tokenizer itself, and to enable the sizes parser to be aware of blocks, I've moved the block tracking logic from the MQ parser to the tokenizer. BUG=357586 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171237

Patch Set 1 #

Patch Set 2 : Debug build fix #

Total comments: 4

Patch Set 3 : Fixed review comments #

Total comments: 4

Patch Set 4 : Added a blockWatcher class, instead of tracking level inside the tokens #

Patch Set 5 : Removed unused member var #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -117 lines) Patch
M Source/core/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A Source/core/css/parser/MediaQueryBlockWatcher.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A Source/core/css/parser/MediaQueryBlockWatcher.cpp View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M Source/core/css/parser/MediaQueryParser.h View 1 2 3 4 3 chunks +17 lines, -36 lines 0 comments Download
M Source/core/css/parser/MediaQueryParser.cpp View 1 2 3 5 chunks +37 lines, -67 lines 0 comments Download
M Source/core/css/parser/MediaQueryToken.h View 1 2 3 3 chunks +12 lines, -3 lines 0 comments Download
M Source/core/css/parser/MediaQueryToken.cpp View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/css/parser/MediaQueryTokenizer.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/parser/MediaQueryTokenizer.cpp View 1 2 3 3 chunks +37 lines, -9 lines 0 comments Download
M Source/core/css/parser/MediaQueryTokenizerTest.cpp View 1 2 3 3 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yoav Weiss
6 years, 8 months ago (2014-04-08 10:29:56 UTC) #1
eseidel
https://codereview.chromium.org/225293006/diff/20001/Source/core/css/parser/MediaQueryParser.cpp File Source/core/css/parser/MediaQueryParser.cpp (right): https://codereview.chromium.org/225293006/diff/20001/Source/core/css/parser/MediaQueryParser.cpp#newcode175 Source/core/css/parser/MediaQueryParser.cpp:175: ++m_blockLevel; Should the tokenizer just have a blockLevel() accessor? ...
6 years, 8 months ago (2014-04-08 16:58:48 UTC) #2
Yoav Weiss
On 2014/04/08 16:58:48, eseidel wrote: > https://codereview.chromium.org/225293006/diff/20001/Source/core/css/parser/MediaQueryParser.cpp > File Source/core/css/parser/MediaQueryParser.cpp (right): > > https://codereview.chromium.org/225293006/diff/20001/Source/core/css/parser/MediaQueryParser.cpp#newcode175 > ...
6 years, 8 months ago (2014-04-08 17:40:41 UTC) #3
Yoav Weiss
On 2014/04/08 17:40:41, Yoav Weiss wrote: > On 2014/04/08 16:58:48, eseidel wrote: > > > ...
6 years, 8 months ago (2014-04-08 22:43:19 UTC) #4
eseidel
I'm not sure I fully understand yet. May try to chat more with you this ...
6 years, 8 months ago (2014-04-08 22:58:51 UTC) #5
Yoav Weiss
On 2014/04/08 22:58:51, eseidel wrote: > I'm not sure I fully understand yet. May try ...
6 years, 8 months ago (2014-04-09 04:56:40 UTC) #6
Yoav Weiss
After our IRC chat, and after thinking about this some more, here's where I'm at ...
6 years, 8 months ago (2014-04-09 08:58:17 UTC) #7
eseidel
lgtm The poor yak is bare. lets move on.
6 years, 8 months ago (2014-04-10 06:45:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/225293006/80001
6 years, 8 months ago (2014-04-10 06:45:47 UTC) #9
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 06:54:54 UTC) #10
Message was sent while issue was closed.
Change committed as 171237

Powered by Google App Engine
This is Rietveld 408576698