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

Issue 187313005: Move StyleSheet to the oilpan heap using transition types. (Closed)

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

Description

Move StyleSheet to the oilpan heap using transition types. This makes StyleSheets RefCountedGarbageCollected. Next step is removing RefPtrs and raw pointers and dealing with finalization order issues. R=erik.corry@gmail.com, haraken@chromium.org, wibling@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168583

Patch Set 1 #

Patch Set 2 : Update OilpanExpectations #

Patch Set 3 : Fix finalization order issue from merge. #

Patch Set 4 : nullptr #

Total comments: 3

Patch Set 5 : Address comments. #

Patch Set 6 : Revert StyleEngine change. #

Total comments: 8

Patch Set 7 : Remove clearParentXYZ methods when compiling with oilpan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -66 lines) Patch
M LayoutTests/OilpanExpectations View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/css/CSSFilterRule.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSRule.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/css/CSSRule.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSStyleSheet.h View 4 chunks +12 lines, -18 lines 0 comments Download
M Source/core/css/CSSStyleSheet.cpp View 1 2 5 chunks +24 lines, -9 lines 0 comments Download
M Source/core/css/MediaList.h View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M Source/core/css/MediaList.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/css/StyleSheet.h View 3 chunks +4 lines, -1 line 0 comments Download
M Source/core/css/StyleSheetContents.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/css/StyleSheetContents.cpp View 1 2 3 4 5 8 chunks +29 lines, -22 lines 0 comments Download
M Source/core/xml/XSLStyleSheet.h View 2 chunks +10 lines, -8 lines 0 comments Download
M Source/core/xml/XSLStyleSheetLibxslt.cpp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mads Ager (chromium)
This is a reland of a previous change that was reverted. As expected the issue ...
6 years, 9 months ago (2014-03-05 11:16:36 UTC) #1
Erik Corry
lgtm https://codereview.chromium.org/187313005/diff/40002/Source/core/css/StyleSheetContents.cpp File Source/core/css/StyleSheetContents.cpp (right): https://codereview.chromium.org/187313005/diff/40002/Source/core/css/StyleSheetContents.cpp#newcode410 Source/core/css/StyleSheetContents.cpp:410: WillBeHeapHashSet<RefPtrWillBeMember<CSSStyleSheet> > protectedClients; I think this can be ...
6 years, 9 months ago (2014-03-05 11:33:28 UTC) #2
Mads Ager (chromium)
https://codereview.chromium.org/187313005/diff/40002/Source/core/css/StyleSheetContents.cpp File Source/core/css/StyleSheetContents.cpp (right): https://codereview.chromium.org/187313005/diff/40002/Source/core/css/StyleSheetContents.cpp#newcode410 Source/core/css/StyleSheetContents.cpp:410: WillBeHeapHashSet<RefPtrWillBeMember<CSSStyleSheet> > protectedClients; On 2014/03/05 11:33:29, Erik Corry wrote: ...
6 years, 9 months ago (2014-03-05 11:36:04 UTC) #3
wibling-chromium
lgtm
6 years, 9 months ago (2014-03-05 11:36:48 UTC) #4
Mads Ager (chromium)
There is a finalization issue here that I missed. The StyleEngine used to die together ...
6 years, 9 months ago (2014-03-05 12:23:01 UTC) #5
Mads Ager (chromium)
StyleEngine change reverted. Haraken, this is ready for your review when you get the time. ...
6 years, 9 months ago (2014-03-05 12:43:46 UTC) #6
haraken
LGTM with comments. https://codereview.chromium.org/187313005/diff/90001/Source/core/css/CSSStyleSheet.h File Source/core/css/CSSStyleSheet.h (right): https://codereview.chromium.org/187313005/diff/90001/Source/core/css/CSSStyleSheet.h#newcode87 Source/core/css/CSSStyleSheet.h:87: void clearOwnerRule() { m_ownerRule = nullptr; ...
6 years, 9 months ago (2014-03-05 14:21:21 UTC) #7
Mads Ager (chromium)
Thanks Haraken. https://codereview.chromium.org/187313005/diff/90001/Source/core/css/CSSStyleSheet.h File Source/core/css/CSSStyleSheet.h (right): https://codereview.chromium.org/187313005/diff/90001/Source/core/css/CSSStyleSheet.h#newcode87 Source/core/css/CSSStyleSheet.h:87: void clearOwnerRule() { m_ownerRule = nullptr; } ...
6 years, 9 months ago (2014-03-05 14:51:15 UTC) #8
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 9 months ago (2014-03-05 14:53:22 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/187313005/110001
6 years, 9 months ago (2014-03-05 14:54:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/187313005/110001
6 years, 9 months ago (2014-03-05 20:59:01 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 02:04:58 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel
6 years, 9 months ago (2014-03-06 02:04:58 UTC) #13
Mads Ager (chromium)
The CQ bit was checked by ager@chromium.org
6 years, 9 months ago (2014-03-06 06:35:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ager@chromium.org/187313005/110001
6 years, 9 months ago (2014-03-06 06:35:28 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 07:51:43 UTC) #16
Message was sent while issue was closed.
Change committed as 168583

Powered by Google App Engine
This is Rietveld 408576698