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

Issue 1709033002: Bring back ref to element in ClassList and RelList (Closed)

Created:
4 years, 10 months ago by Yoav Weiss
Modified:
4 years, 10 months ago
Reviewers:
tkent, sof, philipj_slow
CC:
chromium-reviews, blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bring back ref to element in ClassList and RelList During https://codereview.chromium.org/1629403003/ the non-Oilpan ref forwarding towards element from ClassList and RelList was unrightfully removed. This CL brings it back. BUG=

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added virtual call to DOMTokenList #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M third_party/WebKit/Source/core/dom/DOMTokenList.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/ClassList.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/RelList.h View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Yoav Weiss
4 years, 10 months ago (2016-02-18 14:59:59 UTC) #3
sof
https://codereview.chromium.org/1709033002/diff/1/third_party/WebKit/Source/core/html/ClassList.h File third_party/WebKit/Source/core/html/ClassList.h (right): https://codereview.chromium.org/1709033002/diff/1/third_party/WebKit/Source/core/html/ClassList.h#newcode56 third_party/WebKit/Source/core/html/ClassList.h:56: virtual void ref() { m_element->ref(); } A virtual on ...
4 years, 10 months ago (2016-02-18 15:35:42 UTC) #4
sof
+ reviewers on the original CL.
4 years, 10 months ago (2016-02-18 15:39:16 UTC) #6
Yoav Weiss
On 2016/02/18 15:35:42, sof wrote: > https://codereview.chromium.org/1709033002/diff/1/third_party/WebKit/Source/core/html/ClassList.h > File third_party/WebKit/Source/core/html/ClassList.h (right): > > https://codereview.chromium.org/1709033002/diff/1/third_party/WebKit/Source/core/html/ClassList.h#newcode56 > ...
4 years, 10 months ago (2016-02-19 08:34:31 UTC) #7
Yoav Weiss
On 2016/02/19 08:34:31, Yoav Weiss wrote: > On 2016/02/18 15:35:42, sof wrote: > > > ...
4 years, 10 months ago (2016-02-19 08:41:50 UTC) #8
sof
4 years, 10 months ago (2016-02-19 09:49:12 UTC) #9
On 2016/02/19 08:41:50, Yoav Weiss wrote:
> On 2016/02/19 08:34:31, Yoav Weiss wrote:
> > On 2016/02/18 15:35:42, sof wrote:
> > >
> >
>
https://codereview.chromium.org/1709033002/diff/1/third_party/WebKit/Source/c...
> > > File third_party/WebKit/Source/core/html/ClassList.h (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/1709033002/diff/1/third_party/WebKit/Source/c...
> > > third_party/WebKit/Source/core/html/ClassList.h:56: virtual void ref() {
> > > m_element->ref(); }
> > > A virtual on a final class doesn't add a lot, did you intend to override
> here?
> > > 
> > > I think you need to test & debug this with an enable_oilpan:0 build, as
the
> > > initial ref() on a e.g. a ClassList won't happen (RefCountedBase sets an
> > initial
> > > ref count to avoid that call), which looks like what you're relying on
here.
> > So
> > > you're ref/deref calls are unbalanced -- something that will assert on
> > shutdown,
> > > I'm guessing.
> > 
> > I'm having trouble debugging the non-oilpan build as it keeps crashing on me
> > (unrelated to these changes. crashes on master)
> 
> I'll try my linux setup, synced to ToT and see what it gives me.

fwiw, https://codereview.chromium.org/1715653002/ takes care of it for me.

Powered by Google App Engine
This is Rietveld 408576698