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

Issue 180003002: Consistently use on-heap collections for StyleRuleBase descendants. (Closed)

Created:
6 years, 10 months ago by Vyacheslav Egorov (Chromium)
Modified:
6 years, 10 months ago
CC:
blink-reviews, kenneth.christiansen, Mads Ager (chromium), sof, eae+blinkwatch, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, haraken, rune+blink, Inactive, rwlbuis, oilpan-reviews
Visibility:
Public.

Description

Consistently use on-heap collections for StyleRuleBase descendants. StyleRuleBase and StyleSheetContents are on the heap now so off heap collections of raw pointers to them are disallowed. BUG=341815 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167916

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 29

Patch Set 3 : addressed reviewers comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -36 lines) Patch
M Source/core/css/ElementRuleCollector.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/css/PageRuleCollector.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/PageRuleCollector.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/RuleSet.h View 2 chunks +8 lines, -8 lines 0 comments Download
M Source/core/css/StyleInvalidationAnalysis.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/css/StyleInvalidationAnalysis.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleRuleImport.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/StyleSheetContents.h View 1 3 chunks +3 lines, -3 lines 2 comments Download
M Source/core/css/StyleSheetContents.cpp View 4 chunks +5 lines, -4 lines 0 comments Download
M Source/core/css/resolver/MatchResult.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/StyleEngine.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/TreeScopeStyleSheetCollection.h View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M Source/core/dom/TreeScopeStyleSheetCollection.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/heap/Heap.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/heap/HeapTest.cpp View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Vyacheslav Egorov (Chromium)
PTAL
6 years, 10 months ago (2014-02-25 15:58:22 UTC) #1
sof
https://codereview.chromium.org/180003002/diff/1/Source/core/css/StyleSheetContents.h File Source/core/css/StyleSheetContents.h (right): https://codereview.chromium.org/180003002/diff/1/Source/core/css/StyleSheetContents.h#newcode168 Source/core/css/StyleSheetContents.h:168: Member<StyleRuleImport> m_ownerRule; RawPtrWillBeMember?
6 years, 10 months ago (2014-02-25 16:18:00 UTC) #2
Vyacheslav Egorov (Chromium)
https://codereview.chromium.org/180003002/diff/1/Source/core/css/StyleSheetContents.h File Source/core/css/StyleSheetContents.h (right): https://codereview.chromium.org/180003002/diff/1/Source/core/css/StyleSheetContents.h#newcode168 Source/core/css/StyleSheetContents.h:168: Member<StyleRuleImport> m_ownerRule; On 2014/02/25 16:18:01, sof wrote: > RawPtrWillBeMember? ...
6 years, 10 months ago (2014-02-25 16:22:27 UTC) #3
Mads Ager (chromium)
LGTM https://codereview.chromium.org/180003002/diff/20001/Source/core/css/resolver/MatchResult.h File Source/core/css/resolver/MatchResult.h (right): https://codereview.chromium.org/180003002/diff/20001/Source/core/css/resolver/MatchResult.h#newcode70 Source/core/css/resolver/MatchResult.h:70: struct MatchResult { STACK_ALLOCATED? (If Ian's change has ...
6 years, 10 months ago (2014-02-25 19:35:58 UTC) #4
haraken
This CL is changing a lot of raw pointers with Persistents. I'm a bit afraid ...
6 years, 10 months ago (2014-02-26 02:20:12 UTC) #5
Erik Corry
LGTM https://codereview.chromium.org/180003002/diff/20001/Source/core/css/ElementRuleCollector.h File Source/core/css/ElementRuleCollector.h (right): https://codereview.chromium.org/180003002/diff/20001/Source/core/css/ElementRuleCollector.h#newcode82 Source/core/css/ElementRuleCollector.h:82: WillBePersistentHeapVector<StyleRule*> m_list; On 2014/02/26 02:20:13, haraken wrote: > ...
6 years, 10 months ago (2014-02-26 13:01:28 UTC) #6
Vyacheslav Egorov (Chromium)
PTAL https://codereview.chromium.org/180003002/diff/20001/Source/core/css/ElementRuleCollector.h File Source/core/css/ElementRuleCollector.h (right): https://codereview.chromium.org/180003002/diff/20001/Source/core/css/ElementRuleCollector.h#newcode78 Source/core/css/ElementRuleCollector.h:78: // FIXME: when transition types are gone this ...
6 years, 10 months ago (2014-02-26 13:12:23 UTC) #7
haraken
Thanks for the update! LGTM. https://codereview.chromium.org/180003002/diff/20001/Source/core/css/PageRuleCollector.cpp File Source/core/css/PageRuleCollector.cpp (right): https://codereview.chromium.org/180003002/diff/20001/Source/core/css/PageRuleCollector.cpp#newcode76 Source/core/css/PageRuleCollector.cpp:76: WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> > matchedPageRules; On ...
6 years, 10 months ago (2014-02-26 13:23:48 UTC) #8
Vyacheslav Egorov (Chromium)
https://codereview.chromium.org/180003002/diff/40001/Source/core/css/StyleSheetContents.h File Source/core/css/StyleSheetContents.h (right): https://codereview.chromium.org/180003002/diff/40001/Source/core/css/StyleSheetContents.h#newcode117 Source/core/css/StyleSheetContents.h:117: void clearOwnerRule() { m_ownerRule = nullptr; } On 2014/02/26 ...
6 years, 10 months ago (2014-02-26 13:47:11 UTC) #9
Vyacheslav Egorov (Chromium)
The CQ bit was checked by vegorov@chromium.org
6 years, 10 months ago (2014-02-26 13:47:15 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vegorov@chromium.org/180003002/40001
6 years, 10 months ago (2014-02-26 13:47:24 UTC) #11
haraken
https://codereview.chromium.org/180003002/diff/20001/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/180003002/diff/20001/Source/core/css/RuleSet.h#newcode136 Source/core/css/RuleSet.h:136: const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >& pageRules() const { ASSERT(!m_pendingRules); return m_pageRules; ...
6 years, 10 months ago (2014-02-26 13:47:59 UTC) #12
Vyacheslav Egorov (Chromium)
https://codereview.chromium.org/180003002/diff/20001/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/180003002/diff/20001/Source/core/css/RuleSet.h#newcode136 Source/core/css/RuleSet.h:136: const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >& pageRules() const { ASSERT(!m_pendingRules); return m_pageRules; ...
6 years, 10 months ago (2014-02-26 14:13:28 UTC) #13
haraken
https://codereview.chromium.org/180003002/diff/20001/Source/core/css/RuleSet.h File Source/core/css/RuleSet.h (right): https://codereview.chromium.org/180003002/diff/20001/Source/core/css/RuleSet.h#newcode136 Source/core/css/RuleSet.h:136: const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >& pageRules() const { ASSERT(!m_pendingRules); return m_pageRules; ...
6 years, 10 months ago (2014-02-26 14:20:53 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 16:03:10 UTC) #15
Message was sent while issue was closed.
Change committed as 167916

Powered by Google App Engine
This is Rietveld 408576698