WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
20908
TransformOperations should not inherit from Vector
https://bugs.webkit.org/show_bug.cgi?id=20908
Summary
TransformOperations should not inherit from Vector
Dean Jackson
Reported
2008-09-17 19:38:24 PDT
TransformOperations currently inherits from Vector. It should have a member variable instead. Of course, it already does have a vector as a member variable, so really this whole class needs to be reworked. We should also make the difference between TransformOperation and TransformOperations clearer.
Attachments
Patch to fix bug
(32.59 KB, patch)
2008-09-18 15:26 PDT
,
Chris Marrin
sam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Dean Jackson
Comment 1
2008-09-17 19:39:25 PDT
and by "clearer" I mean "more clear" :)
Dean Jackson
Comment 2
2008-09-17 19:40:22 PDT
Same applies to AnimationList
Chris Marrin
Comment 3
2008-09-18 15:26:13 PDT
Created
attachment 23541
[details]
Patch to fix bug
Chris Marrin
Comment 4
2008-09-18 15:26:44 PDT
I also fixed AnimationList to no longer inherit from Vector<>
Sam Weinig
Comment 5
2008-09-18 15:41:02 PDT
Comment on
attachment 23541
[details]
Patch to fix bug + Animation* animation(size_t i) { return m_animations[i].get(); } + const Animation* animation(size_t i) const { return m_animations[i].get(); } It seems like using operator[] here would be cleaner. r=me
Dean Jackson
Comment 6
2008-09-18 17:01:42 PDT
Committed
r36634
M WebCore/rendering/RenderLayer.cpp M WebCore/rendering/style/AnimationList.cpp M WebCore/rendering/style/TransformOperations.cpp M WebCore/rendering/style/StyleRareNonInheritedData.cpp M WebCore/rendering/style/RenderStyle.cpp M WebCore/rendering/style/RenderStyle.h M WebCore/rendering/style/AnimationList.h M WebCore/rendering/style/TransformOperations.h M WebCore/ChangeLog M WebCore/css/CSSStyleSelector.cpp M WebCore/css/CSSComputedStyleDeclaration.cpp M WebCore/page/animation/CompositeAnimation.cpp M WebCore/page/animation/KeyframeAnimation.cpp M WebCore/page/animation/AnimationBase.cpp M WebCore/page/animation/ImplicitAnimation.cpp
Simon Fraser (smfr)
Comment 7
2008-09-18 18:13:18 PDT
This led to some pretty ugly code. I think AnimationList and TransformOperations should have operator[] and a size() method.
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