[Webkit-unassigned] [Bug 85253] Apply animations and transitions for first-letter element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 1 15:01:32 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85253


Simon Fraser (smfr) <simon.fraser at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #139687|review?                     |review-
               Flag|                            |




--- Comment #8 from Simon Fraser (smfr) <simon.fraser at apple.com>  2012-05-01 15:01:32 PST ---
(From update of attachment 139687)
View in context: https://bugs.webkit.org/attachment.cgi?id=139687&action=review

> LayoutTests/ChangeLog:11
> +        * animations/first-letter-animation-expected.txt: Added.
> +        * animations/first-letter-animation.html: Added.
> +        * transitions/first-letter-color-transition-expected.txt: Added.
> +        * transitions/first-letter-color-transition.html: Added.

I think you should also test:
* transition on both an element and its pseudoelement, of the same and different properties
* animation on an element and its pseudoelement, to check that they can be controlled independently.

> Source/WebCore/rendering/RenderBlock.cpp:5975
> +    RefPtr<RenderStyle> temporaryStyle = RenderStyle::create();
> +    temporaryStyle->inheritFrom(firstLetterBlock->style());
> +    firstLetter->setStyle(temporaryStyle);  
>      firstLetterContainer->addChild(firstLetter, currentChild);
> +    
> +    RefPtr<RenderStyle> pseudoElementStyle = animation()->updateAnimations(firstLetter, pseudoStyle);
> +    firstLetter->setStyle(pseudoElementStyle);

It seems odd to call updateAnimaitons explicitly here. I think this logic should be wrapped up in a RenderObject method that we can possibly use elsewhere.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list