WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
122622
[CSS Shapes] Shape-Image-Threshold should be animatable
https://bugs.webkit.org/show_bug.cgi?id=122622
Summary
[CSS Shapes] Shape-Image-Threshold should be animatable
Bear Travis
Reported
2013-10-10 14:21:53 PDT
The shape-image-threshold property should respond to dynamic changes (add/modify/remove) and to CSS animations.
Attachments
Initial Patch
(15.26 KB, patch)
2013-10-10 16:25 PDT
,
Bear Travis
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Bear Travis
Comment 1
2013-10-10 16:25:03 PDT
Created
attachment 213943
[details]
Initial Patch
Darin Adler
Comment 2
2013-10-10 22:42:30 PDT
Comment on
attachment 213943
[details]
Initial Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=213943&action=review
> Source/WebCore/rendering/RenderBox.cpp:399 > + ShapeOutsideInfo::ensureInfo(this)->dirtyShapeSize();
I am surprised that we would ensureInfo just so we can call dirtyShapeSize. Is there really something to dirty if there is no info? Is that really how things work? Did I already ask this in another context?
Bear Travis
Comment 3
2013-10-11 10:36:11 PDT
(In reply to
comment #2
)
> (From update of
attachment 213943
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=213943&action=review
> > > Source/WebCore/rendering/RenderBox.cpp:399 > > + ShapeOutsideInfo::ensureInfo(this)->dirtyShapeSize(); > > I am surprised that we would ensureInfo just so we can call dirtyShapeSize. Is there really something to dirty if there is no info? Is that really how things work? Did I already ask this in another context?
Yep. You saw this in
Bug 122524
. ShapeOutsideInfos are stored in a global map, and ShapeOutsideInfo::ensureInfo will make sure a ShapeOutsideInfo exists for the given key. But it may also return an existing ShapeOutsideInfo if one is already in the map. It's this case we cover with dirtyShapeSize(). We could optimize by checking in ShapeOutsideInfo::dirtyShapeSize whether or not the shape is already dirty, but it currently just clears a RefPtr, which does not seem too costly.
WebKit Commit Bot
Comment 4
2013-10-11 11:00:09 PDT
Comment on
attachment 213943
[details]
Initial Patch Clearing flags on attachment: 213943 Committed
r157309
: <
http://trac.webkit.org/changeset/157309
>
WebKit Commit Bot
Comment 5
2013-10-11 11:00:11 PDT
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