WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
162837
Use the preferred style of RefCounted<ClipRects>()
https://bugs.webkit.org/show_bug.cgi?id=162837
Summary
Use the preferred style of RefCounted<ClipRects>()
zalan
Reported
2016-09-30 20:36:08 PDT
diff --git a/Source/WebCore/rendering/RenderLayer.cpp b/Source/WebCore/rendering/RenderLayer.cpp index 0c4d1bf..5039236 100644 --- a/Source/WebCore/rendering/RenderLayer.cpp +++ b/Source/WebCore/rendering/RenderLayer.cpp @@ -198,7 +198,7 @@ private: } ClipRects(const ClipRects& other) - : RefCounted() + : RefCounted<ClipRects>() , m_fixed(other.fixed()) , m_overflowClipRect(other.overflowClipRect()) , m_fixedClipRect(other.fixedClipRect())
Attachments
Patch
(1.28 KB, patch)
2016-09-30 20:38 PDT
,
zalan
simon.fraser
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2016-09-30 20:38:44 PDT
Created
attachment 290423
[details]
Patch
Alex Christensen
Comment 2
2016-10-01 08:12:05 PDT
Comment on
attachment 290423
[details]
Patch r=me Please also do this in StyleScrollSnapPoints.cpp, MediaList.cpp, and twice in MediaStreamTrackPrivate.cpp
Alexey Proskuryakov
Comment 3
2016-10-01 10:26:09 PDT
Is there a written rule stating that this is the preferred style? I think that the normal style is to omit the initializer.
Simon Fraser (smfr)
Comment 4
2016-10-01 11:14:36 PDT
Comment on
attachment 290423
[details]
Patch I agree with ap.
Simon Fraser (smfr)
Comment 5
2016-10-01 12:09:11 PDT
You still need to remove the : RefCounted()
Alexey Proskuryakov
Comment 6
2016-10-01 14:51:16 PDT
Not sure if we want to support compiling with -Wextra, looks like this enables warnings that don't make sense.
Darin Adler
Comment 7
2016-10-06 19:57:54 PDT
Comment on
attachment 290423
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=290423&action=review
> Source/WebCore/ChangeLog:3 > + Use the preferred style of RefCounted<ClipRects>()
Why is this preferred style?
Simon Fraser (smfr)
Comment 8
2016-10-06 20:57:19 PDT
What is the preferred style? And why can't we just give RefCounted its own copy constructor?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug