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

Issue 211073002: [Oilpan]: Move CSSFontSelectorClient to the oilpan heap using transition types. (Closed)

Created:
6 years, 9 months ago by wibling-chromium
Modified:
6 years, 9 months ago
CC:
blink-reviews, kenneth.christiansen, aandrey+blink_chromium.org, sof, eae+blinkwatch, ed+blinkwatch_opera.com, dglazkov+blink, Rik, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, rune+blink, Inactive, rwlbuis
Visibility:
Public.

Description

[Oilpan]: Move CSSFontSelectorClient to the oilpan heap using transition types. @jochen or tkent: Could you take a look at the wtf change. I needed to change the trait's Pass[In|Out]Type and Peek[In|Out]Type to make it compile on both gcc and clang for both oilpan and non-oilpan. Also change the StyleResolver's ViewportStyleResolver to an OwnPtrWillBeMember and removed the call to the clearDocument method. Added DISALLOW_ALLOCATION to TreeBoundaryCrossingRules since it is only allocated as a part object and traced it from StyleResolver. Had to change CanvasRenderingContext2D's vector of State to a Vector of pointers to State since we don't yet support vectors of objects with vtables. R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, oilpan-reviews@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org BUG=341815 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170040

Patch Set 1 #

Total comments: 10

Patch Set 2 : Review feedback #

Patch Set 3 : Fix gcc build. #

Total comments: 1

Patch Set 4 : Fix clang oilpan build #

Patch Set 5 : Adding StyleEngine.cpp change (forgot to upload diff again with WTF change) #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -46 lines) Patch
M Source/core/css/CSSFontSelector.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M Source/core/css/CSSFontSelector.cpp View 1 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/css/CSSFontSelectorClient.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/css/MediaQueryEvaluator.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/TreeBoundaryCrossingRules.h View 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 5 chunks +10 lines, -8 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 2 chunks +11 lines, -1 line 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.h View 1 chunk +3 lines, -4 lines 2 comments Download
M Source/core/css/resolver/ViewportStyleResolver.cpp View 1 chunk +0 lines, -5 lines 2 comments Download
M Source/core/dom/Element.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/dom/StyleEngine.h View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 2 3 4 6 chunks +10 lines, -3 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 5 chunks +10 lines, -5 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 3 7 chunks +12 lines, -6 lines 0 comments Download
M Source/wtf/HashTraits.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
wibling-chromium
6 years, 9 months ago (2014-03-25 12:53:06 UTC) #1
haraken
https://codereview.chromium.org/211073002/diff/1/Source/core/css/CSSFontSelector.cpp File Source/core/css/CSSFontSelector.cpp (right): https://codereview.chromium.org/211073002/diff/1/Source/core/css/CSSFontSelector.cpp#newcode132 Source/core/css/CSSFontSelector.cpp:132: void CSSFontSelector::unregisterForInvalidationCallbacks(CSSFontSelectorClient* client) I'd add #if !ENABLE_OILPAN to this ...
6 years, 9 months ago (2014-03-25 13:19:30 UTC) #2
wibling-chromium
Thanks for the review! https://codereview.chromium.org/211073002/diff/1/Source/core/css/CSSFontSelector.cpp File Source/core/css/CSSFontSelector.cpp (right): https://codereview.chromium.org/211073002/diff/1/Source/core/css/CSSFontSelector.cpp#newcode132 Source/core/css/CSSFontSelector.cpp:132: void CSSFontSelector::unregisterForInvalidationCallbacks(CSSFontSelectorClient* client) On 2014/03/25 ...
6 years, 9 months ago (2014-03-25 13:27:16 UTC) #3
haraken
https://codereview.chromium.org/211073002/diff/1/Source/core/css/resolver/ViewportStyleResolver.h File Source/core/css/resolver/ViewportStyleResolver.h (left): https://codereview.chromium.org/211073002/diff/1/Source/core/css/resolver/ViewportStyleResolver.h#oldcode57 Source/core/css/resolver/ViewportStyleResolver.h:57: void clearDocument(); On 2014/03/25 13:27:17, wibling-chromium wrote: > On ...
6 years, 9 months ago (2014-03-25 13:50:20 UTC) #4
wibling-chromium
https://codereview.chromium.org/211073002/diff/1/Source/core/css/resolver/ViewportStyleResolver.h File Source/core/css/resolver/ViewportStyleResolver.h (left): https://codereview.chromium.org/211073002/diff/1/Source/core/css/resolver/ViewportStyleResolver.h#oldcode57 Source/core/css/resolver/ViewportStyleResolver.h:57: void clearDocument(); On 2014/03/25 13:50:21, haraken wrote: > On ...
6 years, 9 months ago (2014-03-25 13:59:24 UTC) #5
haraken
On 2014/03/25 13:59:24, wibling-chromium wrote: > https://codereview.chromium.org/211073002/diff/1/Source/core/css/resolver/ViewportStyleResolver.h > File Source/core/css/resolver/ViewportStyleResolver.h (left): > > https://codereview.chromium.org/211073002/diff/1/Source/core/css/resolver/ViewportStyleResolver.h#oldcode57 > ...
6 years, 9 months ago (2014-03-25 14:16:36 UTC) #6
wibling-chromium
On 2014/03/25 14:16:36, haraken wrote: > On 2014/03/25 13:59:24, wibling-chromium wrote: > > > https://codereview.chromium.org/211073002/diff/1/Source/core/css/resolver/ViewportStyleResolver.h ...
6 years, 9 months ago (2014-03-25 14:35:31 UTC) #7
haraken
On 2014/03/25 14:35:31, wibling-chromium wrote: > On 2014/03/25 14:16:36, haraken wrote: > > On 2014/03/25 ...
6 years, 9 months ago (2014-03-25 15:30:42 UTC) #8
wibling-chromium
On 2014/03/25 15:30:42, haraken wrote: > On 2014/03/25 14:35:31, wibling-chromium wrote: > > On 2014/03/25 ...
6 years, 9 months ago (2014-03-25 15:54:32 UTC) #9
wibling-chromium
Please disregard the below comment. It was a leftover I forgot to remove:) > However ...
6 years, 9 months ago (2014-03-25 15:56:57 UTC) #10
haraken
> We could add a clearDocument call in the Document's destructor, but since it was ...
6 years, 9 months ago (2014-03-25 16:15:55 UTC) #11
Mads Ager (chromium)
LGTM https://codereview.chromium.org/211073002/diff/170001/Source/core/dom/StyleEngine.h File Source/core/dom/StyleEngine.h (right): https://codereview.chromium.org/211073002/diff/170001/Source/core/dom/StyleEngine.h#newcode250 Source/core/dom/StyleEngine.h:250: WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_textToSheetCache; Thanks! These were moved ...
6 years, 9 months ago (2014-03-25 19:21:20 UTC) #12
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 9 months ago (2014-03-26 07:40:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/211073002/170001
6 years, 9 months ago (2014-03-26 07:40:55 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-26 08:05:41 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 9 months ago (2014-03-26 08:05:41 UTC) #16
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 9 months ago (2014-03-26 08:13:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/211073002/170001
6 years, 9 months ago (2014-03-26 08:14:03 UTC) #18
wibling-chromium
The CQ bit was unchecked by wibling@chromium.org
6 years, 9 months ago (2014-03-26 08:49:58 UTC) #19
wibling-chromium
6 years, 9 months ago (2014-03-26 09:30:01 UTC) #20
wibling-chromium
On 2014/03/26 09:30:01, wibling-chromium wrote: jochen@, tkent@: could I get you to take a look ...
6 years, 9 months ago (2014-03-26 09:35:39 UTC) #21
jochen (gone - plz use gerrit)
wtf lgtm
6 years, 9 months ago (2014-03-26 09:36:27 UTC) #22
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 9 months ago (2014-03-26 09:37:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/211073002/320001
6 years, 9 months ago (2014-03-26 09:37:14 UTC) #24
wibling-chromium
On 2014/03/26 09:36:27, jochen wrote: > wtf lgtm Thanks!
6 years, 9 months ago (2014-03-26 09:37:18 UTC) #25
wibling-chromium
The CQ bit was unchecked by wibling@chromium.org
6 years, 9 months ago (2014-03-26 09:39:10 UTC) #26
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 9 months ago (2014-03-26 09:40:48 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/211073002/430001
6 years, 9 months ago (2014-03-26 09:40:56 UTC) #28
commit-bot: I haz the power
Change committed as 170040
6 years, 9 months ago (2014-03-26 10:42:28 UTC) #29
zerny-chromium
lgtm with a few clean-up comments https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode45 Source/core/css/resolver/ViewportStyleResolver.cpp:45: DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ViewportStyleResolver); Ditto https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolver/ViewportStyleResolver.h ...
6 years, 9 months ago (2014-03-26 14:57:49 UTC) #30
wibling-chromium
Thanks for the review. I will do the cleanup in a subsequent change. https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolver/ViewportStyleResolver.cpp File ...
6 years, 9 months ago (2014-03-26 15:21:34 UTC) #31
wibling-chromium
6 years, 9 months ago (2014-03-26 16:06:11 UTC) #32
Message was sent while issue was closed.
On 2014/03/26 15:21:34, wibling-chromium wrote:
> Thanks for the review. I will do the cleanup in a subsequent change.
> 
>
https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolve...
> File Source/core/css/resolver/ViewportStyleResolver.cpp (right):
> 
>
https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolve...
> Source/core/css/resolver/ViewportStyleResolver.cpp:45:
> DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ViewportStyleResolver);
> On 2014/03/26 14:57:49, zerny-chromium wrote:
> > Ditto
> 
> Done.
> 
>
https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolve...
> File Source/core/css/resolver/ViewportStyleResolver.h (right):
> 
>
https://codereview.chromium.org/211073002/diff/430001/Source/core/css/resolve...
> Source/core/css/resolver/ViewportStyleResolver.h:46:
> DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ViewportStyleResolver);
> On 2014/03/26 14:57:49, zerny-chromium wrote:
> > This can be removed now that the RefCounted base is gone.
> 
> Done.

I tried removing the above, but it caused the below error. I will leave it
around for now.

...
In file included from ../../third_party/WebKit/Source/wtf/HashFunctions.h:24:
In file included from ../../third_party/WebKit/Source/wtf/RefPtr.h:28:
../../third_party/WebKit/Source/wtf/PassRefPtr.h:57:16: error: member access
into incomplete type 'WebCore::MutableStylePropertySet'
            ptr->deref();
               ^
../../third_party/WebKit/Source/wtf/RefPtr.h:54:35: note: in instantiation of
function template specialization
'WTF::derefIfNotNull<WebCore::MutableStylePropertySet>' requested here
        ALWAYS_INLINE ~RefPtr() { derefIfNotNull(m_ptr); }
                                  ^
../../third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h:45:7:
note: in instantiation of member function
'WTF::RefPtr<WebCore::MutableStylePropertySet>::~RefPtr' requested here
class ViewportStyleResolver : public
NoBaseWillBeGarbageCollected<ViewportStyleResolver> {
      ^
../../third_party/WebKit/Source/wtf/PassOwnPtr.h:55:45: note: in instantiation
of member function
'WTF::OwnedPtrDeleter<WebCore::ViewportStyleResolver>::deletePtr' requested here
        ~PassOwnPtr() { OwnedPtrDeleter<T>::deletePtr(m_ptr); }
                                            ^
../../third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h:50:16:
note: in instantiation of member function
'WTF::PassOwnPtr<WebCore::ViewportStyleResolver>::~PassOwnPtr' requested here
        return adoptPtrWillBeNoop(new ViewportStyleResolver(document));
               ^
../../third_party/WebKit/Source/core/dom/Element.h:56:7: note: forward
declaration of 'WebCore::MutableStylePropertySet'
class MutableStylePropertySet;
      ^
1 error generated.

Powered by Google App Engine
This is Rietveld 408576698