WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
215942
Make StyleRareNonInheritedData::mask and StyleBackgroundData::background DataRefs
https://bugs.webkit.org/show_bug.cgi?id=215942
Summary
Make StyleRareNonInheritedData::mask and StyleBackgroundData::background Data...
Wenson Hsieh
Reported
2020-08-28 12:14:10 PDT
Potential progression on the Multiply subtest in MotionMark.
Attachments
For EWS
(23.79 KB, patch)
2020-08-28 12:35 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
For EWS (and fix GTK build)
(23.95 KB, patch)
2020-08-28 12:58 PDT
,
Wenson Hsieh
darin
: review+
Details
Formatted Diff
Diff
Patch for landing
(24.17 KB, patch)
2020-08-30 21:09 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2020-08-28 12:35:08 PDT
Comment hidden (obsolete)
Created
attachment 407496
[details]
For EWS
Wenson Hsieh
Comment 2
2020-08-28 12:58:34 PDT
Created
attachment 407497
[details]
For EWS (and fix GTK build)
Darin Adler
Comment 3
2020-08-28 14:37:24 PDT
Comment on
attachment 407497
[details]
For EWS (and fix GTK build) View in context:
https://bugs.webkit.org/attachment.cgi?id=407497&action=review
> Source/WebCore/rendering/style/FillLayer.cpp:30 > +struct SameSizeAsFillLayer : public RefCounted<SameSizeAsFillLayer> {
No need for "public" here.
> Source/WebCore/rendering/style/FillLayer.cpp:31 > + RefPtr<FillLayer> next;
SameSize structures don’t really need to use smart pointers instead of raw pointers.
> Source/WebCore/rendering/style/FillLayer.cpp:110 > + m_next = FillLayer::create(*o.m_next);
Should just call create here, not FillLayer::create.
> Source/WebCore/rendering/style/FillLayer.h:74 > + static Ref<FillLayer> create(FillLayerType type) > + { > + return adoptRef(*new FillLayer(type)); > + } > + > + static Ref<FillLayer> create(const FillLayer& layer) > + { > + return adoptRef(*new FillLayer(layer)); > + }
I suggest not inlining these. We’d rather inline the constructor inside the create function rather than inlining the allocation and then paying function call overhead to call the constructor.
> Source/WebCore/rendering/style/FillLayer.h:79 > + Ref<FillLayer> copy() const > + { > + return FillLayer::create(*this); > + }
Should call just "create" and should write as a one-liner: Ref<FillLayer> copy() const { return create(*this); }
Wenson Hsieh
Comment 4
2020-08-29 16:46:52 PDT
Comment on
attachment 407497
[details]
For EWS (and fix GTK build) View in context:
https://bugs.webkit.org/attachment.cgi?id=407497&action=review
Thanks for the review!
>> Source/WebCore/rendering/style/FillLayer.cpp:30 >> +struct SameSizeAsFillLayer : public RefCounted<SameSizeAsFillLayer> { > > No need for "public" here.
Removed the public!
>> Source/WebCore/rendering/style/FillLayer.cpp:31 >> + RefPtr<FillLayer> next; > > SameSize structures don’t really need to use smart pointers instead of raw pointers.
Changed back to a raw pointer.
>> Source/WebCore/rendering/style/FillLayer.cpp:110 >> + m_next = FillLayer::create(*o.m_next); > > Should just call create here, not FillLayer::create.
Removed the FillLayer::
>> Source/WebCore/rendering/style/FillLayer.h:74 >> + } > > I suggest not inlining these. We’d rather inline the constructor inside the create function rather than inlining the allocation and then paying function call overhead to call the constructor.
Sounds good — moved the definition out of the header.
>> Source/WebCore/rendering/style/FillLayer.h:79 >> + } > > Should call just "create" and should write as a one-liner: > > Ref<FillLayer> copy() const { return create(*this); }
Done!
Wenson Hsieh
Comment 5
2020-08-30 21:09:00 PDT
Created
attachment 407586
[details]
Patch for landing
EWS
Comment 6
2020-08-30 21:51:24 PDT
Committed
r266344
: <
https://trac.webkit.org/changeset/266344
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 407586
[details]
.
Radar WebKit Bug Importer
Comment 7
2020-08-30 21:52:14 PDT
<
rdar://problem/68052423
>
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