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

Issue 196513007: Oilpan: Reapply: Remove all the RefPtrs and most of the raw pointers to style (Closed)

Created:
6 years, 9 months ago by Mads Ager (chromium)
Modified:
6 years, 9 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, rune+blink, caseq+blink_chromium.org, arv+blink, yurys+blink_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, rwlbuis, loislo+blink_chromium.org, sof, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, gavinp+prerender_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, ed+blinkwatch_opera.com, Inactive, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

Oilpan: Reapply: Remove all the RefPtrs and most of the raw pointers to style sheets. Comment on the cases where the raw pointers cannot be removed at this point. Leave the raw pointers in inspector/ alove. They are safe as they are now because the inspector leaks all the CSSStyleSheets it is inspecting via Persistent handles at this point (and used to leak them all via RefPtrs.) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169462

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix by reverting last minute changes. #

Total comments: 2

Patch Set 3 : Move contains assert to handles and make collection garbage collected #

Patch Set 4 : Rebase #

Patch Set 5 : NULL check in assert. #

Patch Set 6 : Fix assertion for global persistents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -75 lines) Patch
M Source/core/css/CSSImportRule.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M Source/core/css/CSSStyleSheet.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/css/CSSStyleSheet.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/css/CSSTestHelper.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/ElementRuleCollector.h View 1 3 chunks +26 lines, -4 lines 0 comments Download
M Source/core/css/ElementRuleCollector.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/StyleSheet.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleSheet.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/StyleSheetList.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/css/resolver/MatchRequest.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/DOMImplementation.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DOMImplementation.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DocumentStyleSheetCollection.h View 2 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/dom/ProcessingInstruction.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/ProcessingInstruction.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/ShadowTreeStyleSheetCollection.h View 2 1 chunk +7 lines, -1 line 0 comments Download
M Source/core/dom/StyleElement.h View 1 chunk +1 line, -1 line 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/dom/StyleEngine.h View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 2 3 5 chunks +9 lines, -7 lines 0 comments Download
M Source/core/dom/StyleSheetCollection.h View 2 2 chunks +9 lines, -6 lines 0 comments Download
M Source/core/dom/StyleSheetCollection.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/dom/TreeScopeStyleSheetCollection.h View 2 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorCSSAgent.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorStyleSheet.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorStyleSheet.cpp View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/xml/XSLImportRule.h View 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/xml/XSLStyleSheet.h View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/xml/XSLStyleSheetLibxslt.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/xml/XSLTProcessor.h View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/xml/XSLTProcessor.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M Source/core/xml/XSLTProcessorLibxslt.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/heap/Handle.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M Source/heap/Heap.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Mads Ager (chromium)
Patch set 2 is the changes that I undid again. They were all changes that ...
6 years, 9 months ago (2014-03-17 13:57:23 UTC) #1
haraken
https://codereview.chromium.org/196513007/diff/20001/Source/core/dom/ShadowTreeStyleSheetCollection.h File Source/core/dom/ShadowTreeStyleSheetCollection.h (right): https://codereview.chromium.org/196513007/diff/20001/Source/core/dom/ShadowTreeStyleSheetCollection.h#newcode41 Source/core/dom/ShadowTreeStyleSheetCollection.h:41: class ShadowTreeStyleSheetCollection FINAL : public NoBaseWillBeGarbageCollectedFinalized<ShadowTreeStyleSheetCollection>, public TreeScopeStyleSheetCollection { ...
6 years, 9 months ago (2014-03-17 14:29:37 UTC) #2
Erik Corry
On 2014/03/17 14:29:37, haraken wrote: > https://codereview.chromium.org/196513007/diff/20001/Source/core/dom/ShadowTreeStyleSheetCollection.h > File Source/core/dom/ShadowTreeStyleSheetCollection.h (right): > > https://codereview.chromium.org/196513007/diff/20001/Source/core/dom/ShadowTreeStyleSheetCollection.h#newcode41 > ...
6 years, 9 months ago (2014-03-17 14:48:58 UTC) #3
Mads Ager (chromium)
On 2014/03/17 14:29:37, haraken wrote: > https://codereview.chromium.org/196513007/diff/20001/Source/core/dom/ShadowTreeStyleSheetCollection.h > File Source/core/dom/ShadowTreeStyleSheetCollection.h (right): > > https://codereview.chromium.org/196513007/diff/20001/Source/core/dom/ShadowTreeStyleSheetCollection.h#newcode41 > ...
6 years, 9 months ago (2014-03-17 14:50:08 UTC) #4
haraken
> This is unsafe: > > class A : public GarbageCollected<A> { }; > > ...
6 years, 9 months ago (2014-03-17 17:43:55 UTC) #5
Mads Ager (chromium)
On 2014/03/17 17:43:55, haraken wrote: > > This is unsafe: > > > > class ...
6 years, 9 months ago (2014-03-18 06:17:37 UTC) #6
Mads Ager (chromium)
Uploaded new change. I move the heap contains assert from the GarbageCollected constructor to the ...
6 years, 9 months ago (2014-03-18 06:29:11 UTC) #7
haraken
Thanks for the update! LGTM.
6 years, 9 months ago (2014-03-18 09:40:32 UTC) #8
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 9 months ago (2014-03-18 13:48:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/196513007/90001
6 years, 9 months ago (2014-03-18 13:48:29 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 14:54:44 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-18 14:54:45 UTC) #12
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 9 months ago (2014-03-18 16:12:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/196513007/90001
6 years, 9 months ago (2014-03-18 16:12:06 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-18 17:20:19 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-18 17:20:22 UTC) #16
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 9 months ago (2014-03-18 17:24:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/196513007/90001
6 years, 9 months ago (2014-03-18 17:25:09 UTC) #18
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 19:09:19 UTC) #19
Message was sent while issue was closed.
Change committed as 169462

Powered by Google App Engine
This is Rietveld 408576698