WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138206
Remove create() factory function in FooAnimationValue classes
https://bugs.webkit.org/show_bug.cgi?id=138206
Summary
Remove create() factory function in FooAnimationValue classes
Gyuyoung Kim
Reported
2014-10-29 18:55:19 PDT
SSIA
Attachments
Patch
(16.11 KB, patch)
2014-10-29 18:56 PDT
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(16.91 KB, patch)
2014-10-30 18:46 PDT
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(16.92 KB, patch)
2014-10-30 21:42 PDT
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Rebased
(16.90 KB, patch)
2014-11-09 18:27 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch for landing
(16.72 KB, patch)
2014-11-09 22:01 PST
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Gyuyoung Kim
Comment 1
2014-10-29 18:56:29 PDT
Created
attachment 240647
[details]
Patch
Gyuyoung Kim
Comment 2
2014-10-30 18:46:23 PDT
Created
attachment 240719
[details]
Patch
Gyuyoung Kim
Comment 3
2014-10-30 21:42:27 PDT
Created
attachment 240724
[details]
Patch
Ryosuke Niwa
Comment 4
2014-10-31 20:48:31 PDT
Comment on
attachment 240724
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=240724&action=review
> Source/WebCore/platform/graphics/GraphicsLayer.h:91 > + FloatAnimationValue(double keyTime, float value, TimingFunction* timingFunction = nullptr) > + : AnimationValue(keyTime, timingFunction) > + , m_value(value) > { > - return adoptPtr(new FloatAnimationValue(keyTime, value, timingFunction)); > }
Doesn't this change expose the copy constructor as a public member function?
Gyuyoung Kim
Comment 5
2014-10-31 23:25:39 PDT
(In reply to
comment #4
)
> Comment on
attachment 240724
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=240724&action=review
> > > Source/WebCore/platform/graphics/GraphicsLayer.h:91 > > + FloatAnimationValue(double keyTime, float value, TimingFunction* timingFunction = nullptr) > > + : AnimationValue(keyTime, timingFunction) > > + , m_value(value) > > { > > - return adoptPtr(new FloatAnimationValue(keyTime, value, timingFunction)); > > } > > Doesn't this change expose the copy constructor as a public member function?
When I try to create FloatAnimationValue through copy constructor, there is no build error. If you have concern about it, could you let me know it ?
Gyuyoung Kim
Comment 6
2014-11-03 20:56:09 PST
(In reply to
comment #5
)
> (In reply to
comment #4
) > > Comment on
attachment 240724
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=240724&action=review
> > > > > Source/WebCore/platform/graphics/GraphicsLayer.h:91 > > > + FloatAnimationValue(double keyTime, float value, TimingFunction* timingFunction = nullptr) > > > + : AnimationValue(keyTime, timingFunction) > > > + , m_value(value) > > > { > > > - return adoptPtr(new FloatAnimationValue(keyTime, value, timingFunction)); > > > } > > > > Doesn't this change expose the copy constructor as a public member function? > > > When I try to create FloatAnimationValue through copy constructor, there is > no build error.
I succeed to create FloatAnimationValue object using copy constructor as below, FloatAnimationValue* fValue = new FloatAnimationValue(key, keyframeStyle->opacity(), tf); FloatAnimationValue* copyValue(fValue); It looks the change can support copy constructor.
Gyuyoung Kim
Comment 7
2014-11-09 18:27:26 PST
Created
attachment 241266
[details]
Rebased
Darin Adler
Comment 8
2014-11-09 21:48:56 PST
Comment on
attachment 241266
[details]
Rebased View in context:
https://bugs.webkit.org/attachment.cgi?id=241266&action=review
> Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp:160 > + std::unique_ptr<AnimationValue> intialValue = std::make_unique<FloatAnimationValue>(0, 1); > + fadeKeyframes.insert(WTF::move(intialValue));
I think this would read better without a local variable: fadeKeyframes.insert(std::make_unique<FloatAnimationValue>(0, 1));
> Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp:163 > + std::unique_ptr<AnimationValue> finalValue = std::make_unique<FloatAnimationValue>(0.25, 0); > + fadeKeyframes.insert(WTF::move(finalValue));
I think this would read better without a local variable: fadeKeyframes.insert(std::make_unique<FloatAnimationValue>(0.25, 0));
Gyuyoung Kim
Comment 9
2014-11-09 22:01:59 PST
Created
attachment 241275
[details]
Patch for landing
Gyuyoung Kim
Comment 10
2014-11-09 22:02:59 PST
(In reply to
comment #8
)
> Comment on
attachment 241266
[details]
> Rebased > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=241266&action=review
> > > Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp:160 > > + std::unique_ptr<AnimationValue> intialValue = std::make_unique<FloatAnimationValue>(0, 1); > > + fadeKeyframes.insert(WTF::move(intialValue)); > > I think this would read better without a local variable: > > fadeKeyframes.insert(std::make_unique<FloatAnimationValue>(0, 1)); > > > Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp:163 > > + std::unique_ptr<AnimationValue> finalValue = std::make_unique<FloatAnimationValue>(0.25, 0); > > + fadeKeyframes.insert(WTF::move(finalValue)); > > I think this would read better without a local variable: > > fadeKeyframes.insert(std::make_unique<FloatAnimationValue>(0.25, 0));
Thank you for review ! Fixed all.
WebKit Commit Bot
Comment 11
2014-11-09 22:47:02 PST
Comment on
attachment 241275
[details]
Patch for landing Clearing flags on attachment: 241275 Committed
r175799
: <
http://trac.webkit.org/changeset/175799
>
WebKit Commit Bot
Comment 12
2014-11-09 22:47:09 PST
All reviewed patches have been landed. Closing bug.
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