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

Issue 170283019: Change various helper classes to transition types to get CSSValue entirely onto the gc heap. (Closed)

Created:
6 years, 10 months ago by wibling-chromium
Modified:
6 years, 9 months ago
CC:
blink-reviews, adamk+blink_chromium.org, kenneth.christiansen, arv+blink, Mads Ager (chromium), sof, eae+blinkwatch, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, Inactive, darktears, gavinp+prerender_chromium.org, rune+blink, watchdog-blink-watchlist_google.com, rwlbuis, oilpan-reviews
Visibility:
Public.

Description

Change various helper classes to transition types to get CSSValue entirely onto the gc heap. Specifically MediaQuery, MediaQueryExp, MediaQuerySet, MediaQueryResult, and MediaList. Also added a persistent in CSSStyleSheet and MediaQueryList. Finally changed FontFace to RefCountedGarbageCollected when oilpan is enabled. FontFace require a bit more separate work to move entirely so leaving that for a separate change. The reason for the test breakage was that I had overlooked a MediaQueryExp that was a part object in MediaQueryResult. Finally fixed an incorrect persistent found by Ian's oilpan plugin, yay:) R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org BUG=341815 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167798 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168456

Patch Set 1 #

Total comments: 16

Patch Set 2 : Merging with latest trunk #

Patch Set 3 : Remove GC_INFO's #

Patch Set 4 : Fix breaking tests #

Patch Set 5 : Fixed incorrect persistent found by the clang oilpan plugin #

Total comments: 8

Patch Set 6 : Review feedback #

Total comments: 2

Patch Set 7 : Review feedback #

Patch Set 8 : Rebase and revert member to persistent in StorageEvent #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -118 lines) Patch
M Source/core/css/CSSGrammar.y View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/css/CSSImportRule.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSImportRule.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/css/CSSMediaRule.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/CSSMediaRule.cpp View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/css/CSSStyleSheet.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/css/CSSStyleSheet.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/FontFace.h View 1 2 3 3 chunks +10 lines, -8 lines 0 comments Download
M Source/core/css/FontFace.cpp View 1 2 3 4 chunks +14 lines, -3 lines 0 comments Download
M Source/core/css/MediaList.h View 1 2 3 3 chunks +23 lines, -17 lines 2 comments Download
M Source/core/css/MediaList.cpp View 1 2 3 4 5 6 11 chunks +27 lines, -13 lines 0 comments Download
M Source/core/css/MediaList.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/MediaQuery.h View 1 2 3 4 5 6 2 chunks +10 lines, -7 lines 0 comments Download
M Source/core/css/MediaQuery.cpp View 1 2 3 4 5 6 3 chunks +13 lines, -4 lines 0 comments Download
M Source/core/css/MediaQueryEvaluator.h View 1 2 3 2 chunks +2 lines, -1 line 2 comments Download
M Source/core/css/MediaQueryEvaluator.cpp View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/css/MediaQueryExp.h View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M Source/core/css/MediaQueryExp.cpp View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M Source/core/css/MediaQueryList.h View 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/css/MediaQueryList.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/MediaQueryMatcher.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleMedia.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleRule.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/css/StyleRule.cpp View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/css/StyleRuleImport.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/css/StyleRuleImport.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/css/parser/BisonCSSParser.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -12 lines 0 comments Download
M Source/core/css/parser/BisonCSSParser-in.cpp View 1 2 3 4 5 6 7 5 chunks +12 lines, -12 lines 0 comments Download
M Source/core/css/resolver/MediaQueryResult.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/dom/StyleElement.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLResourcePreloader.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/storage/StorageEvent.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
wibling-chromium
6 years, 10 months ago (2014-02-20 15:04:16 UTC) #1
tkent
https://codereview.chromium.org/170283019/diff/1/Source/core/css/CSSGrammar.y File Source/core/css/CSSGrammar.y (right): https://codereview.chromium.org/170283019/diff/1/Source/core/css/CSSGrammar.y#newcode87 Source/core/css/CSSGrammar.y:87: WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> >* mediaQueryExpList; How is this union allocated? On ...
6 years, 10 months ago (2014-02-21 00:00:36 UTC) #2
tkent
lgtm https://codereview.chromium.org/170283019/diff/1/Source/core/css/CSSGrammar.y File Source/core/css/CSSGrammar.y (right): https://codereview.chromium.org/170283019/diff/1/Source/core/css/CSSGrammar.y#newcode87 Source/core/css/CSSGrammar.y:87: WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> >* mediaQueryExpList; On 2014/02/21 00:00:36, tkent wrote: ...
6 years, 10 months ago (2014-02-21 00:13:14 UTC) #3
haraken
LGTM with comments. https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp File Source/core/css/MediaList.cpp (right): https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp#newcode166 Source/core/css/MediaList.cpp:166: // We don't support tracing of ...
6 years, 10 months ago (2014-02-21 01:02:36 UTC) #4
wibling-chromium
Thanks for the reviews! https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp File Source/core/css/MediaList.cpp (right): https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp#newcode166 Source/core/css/MediaList.cpp:166: // We don't support tracing ...
6 years, 10 months ago (2014-02-21 08:43:07 UTC) #5
wibling-chromium
https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp File Source/core/css/MediaList.cpp (right): https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp#newcode166 Source/core/css/MediaList.cpp:166: // We don't support tracing of vectors of OwnPtrs ...
6 years, 10 months ago (2014-02-25 12:07:28 UTC) #6
haraken
https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp File Source/core/css/MediaList.cpp (right): https://codereview.chromium.org/170283019/diff/1/Source/core/css/MediaList.cpp#newcode166 Source/core/css/MediaList.cpp:166: // We don't support tracing of vectors of OwnPtrs ...
6 years, 10 months ago (2014-02-25 12:09:57 UTC) #7
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 10 months ago (2014-02-25 12:41:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/170283019/200001
6 years, 10 months ago (2014-02-25 12:41:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/170283019/200001
6 years, 10 months ago (2014-02-25 13:33:16 UTC) #10
commit-bot: I haz the power
Change committed as 167798
6 years, 10 months ago (2014-02-25 16:21:20 UTC) #11
haraken
On 2014/02/25 16:21:20, I haz the power (commit-bot) wrote: > Change committed as 167798 hmm, ...
6 years, 10 months ago (2014-02-26 05:30:20 UTC) #12
wibling-chromium
On 2014/02/26 05:30:20, haraken wrote: > On 2014/02/25 16:21:20, I haz the power (commit-bot) wrote: ...
6 years, 10 months ago (2014-02-26 07:41:15 UTC) #13
wibling-chromium
PTAL
6 years, 9 months ago (2014-03-03 10:27:43 UTC) #14
Mads Ager (chromium)
https://codereview.chromium.org/170283019/diff/240001/Source/core/css/CSSImportRule.cpp File Source/core/css/CSSImportRule.cpp (right): https://codereview.chromium.org/170283019/diff/240001/Source/core/css/CSSImportRule.cpp#newcode44 Source/core/css/CSSImportRule.cpp:44: // Oilpan automatically handles cycles and doesn't want destructors ...
6 years, 9 months ago (2014-03-03 10:38:44 UTC) #15
wibling-chromium
Thanks for the review. I will upload a new diff. https://codereview.chromium.org/170283019/diff/240001/Source/core/css/CSSImportRule.cpp File Source/core/css/CSSImportRule.cpp (right): https://codereview.chromium.org/170283019/diff/240001/Source/core/css/CSSImportRule.cpp#newcode44 ...
6 years, 9 months ago (2014-03-03 10:45:08 UTC) #16
haraken
LGTM with Mads' comments addressed. https://codereview.chromium.org/170283019/diff/240001/Source/core/css/MediaQuery.h File Source/core/css/MediaQuery.h (right): https://codereview.chromium.org/170283019/diff/240001/Source/core/css/MediaQuery.h#newcode41 Source/core/css/MediaQuery.h:41: typedef WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> > ExpressionVector; ...
6 years, 9 months ago (2014-03-03 10:51:29 UTC) #17
wibling-chromium
Thanks for the review! https://codereview.chromium.org/170283019/diff/240001/Source/core/css/MediaQuery.h File Source/core/css/MediaQuery.h (right): https://codereview.chromium.org/170283019/diff/240001/Source/core/css/MediaQuery.h#newcode41 Source/core/css/MediaQuery.h:41: typedef WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> > ExpressionVector; On ...
6 years, 9 months ago (2014-03-03 11:21:10 UTC) #18
Mads Ager (chromium)
LGTM https://codereview.chromium.org/170283019/diff/260001/Source/core/css/CSSGrammar.y File Source/core/css/CSSGrammar.y (right): https://codereview.chromium.org/170283019/diff/260001/Source/core/css/CSSGrammar.y#newcode88 Source/core/css/CSSGrammar.y:88: WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> >* mediaQueryExpList; As with the ruleList above, ...
6 years, 9 months ago (2014-03-03 11:30:20 UTC) #19
wibling-chromium
https://codereview.chromium.org/170283019/diff/260001/Source/core/css/CSSGrammar.y File Source/core/css/CSSGrammar.y (right): https://codereview.chromium.org/170283019/diff/260001/Source/core/css/CSSGrammar.y#newcode88 Source/core/css/CSSGrammar.y:88: WillBeHeapVector<OwnPtrWillBeMember<MediaQueryExp> >* mediaQueryExpList; On 2014/03/03 11:30:21, Mads Ager (chromium) ...
6 years, 9 months ago (2014-03-03 11:40:16 UTC) #20
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 9 months ago (2014-03-04 09:59:29 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/170283019/300001
6 years, 9 months ago (2014-03-04 10:10:23 UTC) #22
zerny-chromium
lgtm, with one fix and one suggestion. https://codereview.chromium.org/170283019/diff/300001/Source/core/css/MediaList.h File Source/core/css/MediaList.h (right): https://codereview.chromium.org/170283019/diff/300001/Source/core/css/MediaList.h#newcode41 Source/core/css/MediaList.h:41: class MediaQuerySet ...
6 years, 9 months ago (2014-03-05 06:38:39 UTC) #23
wibling-chromium
Thanks for the review. https://codereview.chromium.org/170283019/diff/300001/Source/core/css/MediaList.h File Source/core/css/MediaList.h (right): https://codereview.chromium.org/170283019/diff/300001/Source/core/css/MediaList.h#newcode41 Source/core/css/MediaList.h:41: class MediaQuerySet : public RefCountedWillBeGarbageCollected<MediaQuerySet> ...
6 years, 9 months ago (2014-03-05 08:09:41 UTC) #24
wibling-chromium
The CQ bit was unchecked by wibling@chromium.org
6 years, 9 months ago (2014-03-05 09:24:36 UTC) #25
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 9 months ago (2014-03-05 09:29:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/170283019/300001
6 years, 9 months ago (2014-03-05 09:30:20 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-03-05 09:31:42 UTC) #28
Message was sent while issue was closed.
Change committed as 168456

Powered by Google App Engine
This is Rietveld 408576698