Bug 137511

Summary: [CoordinatedGraphics] Flickering bug of a translate animation when used with percentage value and webkit-transition-duration
Product: WebKit Reporter: June Geol Kim <cory.kim>
Component: WebKit EFLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cmarcelo, commit-queue, gyuyoung.kim, lucas.de.marchi, luiz, noam, ryuan.choi, sergio, zeno
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Test case
none
Patch : the cause of this bug is an overflow when converting from float to integer.
darin: review-
ChangeLog
none
patch
gyuyoung.kim: review-
patch gyuyoung.kim: review-

Description June Geol Kim 2014-10-07 21:44:57 PDT
Created attachment 239452 [details]
Test case

It occurs when used -webkit-transform::translate(x,y) and -webkit-transition-duration together.
And another main condition is that its transform value is only percentage.

Example below
  -webkit-transform:translate(50%,0);
  -webkit-transition-duration: 1s;

The testcase is attached and I found the web page having this problem at http://m.daum.net.

You can test it with the attached test case on PC or the URL with this problem is http://m.daum.net on a mobile phone.
Comment 1 June Geol Kim 2014-10-07 22:52:34 PDT
Created attachment 239456 [details]
Patch : the cause of this bug is an overflow when converting from float to integer.

I found that the cause of this bug is an overflow when converting from float to integer.
The GraphicsLayerAnimation's boxSize is encoded to FloatSize but is decoded to IntSize In the CoordinatedGraphics' ArgumentCoder.

As a result, it is translated to the unexpected position and might be seen like flickering.
Comment 2 Ryuan Choi 2014-10-07 22:58:30 PDT
Comment on attachment 239456 [details]
Patch : the cause of this bug is an overflow when converting from float to integer.

Next time, please check r? if you want to get review.
Comment 3 Darin Adler 2014-10-08 09:06:55 PDT
Comment on attachment 239456 [details]
Patch : the cause of this bug is an overflow when converting from float to integer.

Bug fix looks fine. Needs a ChangeLog and, if possible, a test case. review- because of no ChangeLog.
Comment 4 June Geol Kim 2014-10-15 23:11:46 PDT
Created attachment 239930 [details]
ChangeLog

I'm sorry. 
I've attached a ChangeLog.
 
Darin, Thank you for your review!!
Comment 5 WebKit Commit Bot 2014-10-15 23:13:30 PDT
Attachment 239930 [details] did not pass style-queue:


Total errors found: 0 in 0 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 June Geol Kim 2014-10-15 23:36:13 PDT
Created attachment 239932 [details]
patch

Sorry. the previous ChangeLog was wrong.
So I've attached new ChangeLog.

This is the first commit of mine.
Next time I will not make a mistake.
Comment 7 Gyuyoung Kim 2014-10-15 23:42:24 PDT
Comment on attachment 239932 [details]
patch

First of all, thank you for uploading your patch regarding coordinated graphics. However, it looks you uploaded your patch without any webkit contribution experience. I think you uploaded your patch with wrong file format type and no-patch checking option. Please read below guide before uploading your patch.


http://www.webkit.org/coding/contributing.html

r- because of wrong changelog update.
Comment 8 June Geol Kim 2014-10-16 00:14:41 PDT
Created attachment 239937 [details]
patch

I'm sorry. 
I've read your sent contributing code page and checked it one more time.
I think a wrong file format(application/octet-stream) was because I didn't select a patch for Content Type.
I've selected it and try to upload it.
Comment 9 Gyuyoung Kim 2014-10-16 00:19:52 PDT
Comment on attachment 239937 [details]
patch

Your patch updated ChangeLog file totally even though you only touch WebKit2. Remove many changes in ChangeLog file. Contributor should check patch before uploading to Bugzilla.

One more thing. isn't there any test case which can be fixed by this fix ?
Comment 10 Ryuan Choi 2015-06-02 16:36:41 PDT
june geol,

Can you update this?

I think that this bug is still vaild.