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

Issue 181403005: Introduce TerminatedArray<T> type to make data-structure used by RuleSet visible at the type level. (Closed)

Created:
6 years, 9 months ago by Vyacheslav Egorov (Chromium)
Modified:
6 years, 9 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Introduce TerminatedArray<T> type to make data-structure used by RuleSet visible at the type level. Before this change it was not possible to easily distinguish when RuleData represented a single item and when it represented an array. This change is prerequisite for moving RuleSet/RuleData into the GC managed heap because tracing routines are largely type driven. BUG= NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168508

Patch Set 1 #

Total comments: 17

Patch Set 2 : address review comment #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -145 lines) Patch
M Source/core/css/CSSTestHelper.h View 1 chunk +0 lines, -4 lines 0 comments Download
M Source/core/css/CSSTestHelper.cpp View 1 chunk +0 lines, -22 lines 0 comments Download
M Source/core/css/ElementRuleCollector.h View 1 chunk +11 lines, -2 lines 0 comments Download
M Source/core/css/ElementRuleCollector.cpp View 1 chunk +0 lines, -18 lines 0 comments Download
M Source/core/css/RuleSet.h View 1 3 chunks +6 lines, -5 lines 0 comments Download
M Source/core/css/RuleSet.cpp View 1 2 chunks +2 lines, -70 lines 0 comments Download
M Source/core/css/RuleSetTest.cpp View 8 chunks +24 lines, -24 lines 0 comments Download
A Source/wtf/TerminatedArray.h View 1 1 chunk +85 lines, -0 lines 0 comments Download
A Source/wtf/TerminatedArrayBuilder.h View 1 1 chunk +79 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Vyacheslav Egorov (Chromium)
Adam, could you take a look? According to commit logs it was you who introduced ...
6 years, 9 months ago (2014-03-04 17:18:02 UTC) #1
abarth-chromium
LGTM Very nice https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h#newcode118 Source/core/css/RuleSet.h:118: class TerminatedArray { Can you move ...
6 years, 9 months ago (2014-03-04 19:03:35 UTC) #2
haraken
LGTM https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h#newcode119 Source/core/css/RuleSet.h:119: WTF_MAKE_FAST_ALLOCATED; Add WTF_MAKE_NONCOPYABLE(TerminatedArray). https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h#newcode126 Source/core/css/RuleSet.h:126: PassOwnPtr<TerminatedArray> realloc(size_t capacity) ...
6 years, 9 months ago (2014-03-05 01:47:05 UTC) #3
wibling-chromium
lgtm https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h#newcode168 Source/core/css/RuleSet.h:168: size_t size() const Consider adding a comment describing ...
6 years, 9 months ago (2014-03-05 09:28:32 UTC) #4
Erik Corry
lgtm https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h#newcode118 Source/core/css/RuleSet.h:118: class TerminatedArray { On 2014/03/04 19:03:35, abarth wrote: ...
6 years, 9 months ago (2014-03-05 11:43:51 UTC) #5
Vyacheslav Egorov (Chromium)
Comments addressed. Can somebody take another quick look? https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/181403005/diff/1/Source/core/css/RuleSet.h#newcode118 Source/core/css/RuleSet.h:118: class ...
6 years, 9 months ago (2014-03-05 12:44:07 UTC) #6
wibling-chromium
lgtm
6 years, 9 months ago (2014-03-05 12:54:35 UTC) #7
Vyacheslav Egorov (Chromium)
The CQ bit was checked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 13:03:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vegorov@chromium.org/181403005/20001
6 years, 9 months ago (2014-03-05 13:03:25 UTC) #9
haraken
LGTM
6 years, 9 months ago (2014-03-05 13:58:46 UTC) #10
Vyacheslav Egorov (Chromium)
The CQ bit was unchecked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 17:40:56 UTC) #11
Vyacheslav Egorov (Chromium)
The CQ bit was checked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 17:40:57 UTC) #12
Vyacheslav Egorov (Chromium)
The CQ bit was unchecked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 17:48:34 UTC) #13
Vyacheslav Egorov (Chromium)
The CQ bit was checked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 17:48:34 UTC) #14
Vyacheslav Egorov (Chromium)
The CQ bit was unchecked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 17:48:35 UTC) #15
Vyacheslav Egorov (Chromium)
The CQ bit was checked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 17:48:40 UTC) #16
Vyacheslav Egorov (Chromium)
The CQ bit was unchecked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 18:11:41 UTC) #17
Vyacheslav Egorov (Chromium)
The CQ bit was checked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 18:11:47 UTC) #18
Vyacheslav Egorov (Chromium)
The CQ bit was checked by vegorov@chromium.org
6 years, 9 months ago (2014-03-05 18:26:11 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vegorov@chromium.org/181403005/60001
6 years, 9 months ago (2014-03-05 18:26:54 UTC) #20
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 18:27:23 UTC) #21
Message was sent while issue was closed.
Change committed as 168508

Powered by Google App Engine
This is Rietveld 408576698