Bug 123698 - [CSS] Enable css-image-orientation on EFL and GTK ports.
Summary: [CSS] Enable css-image-orientation on EFL and GTK ports.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gyuyoung Kim
URL:
Keywords:
: 123256 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-03 00:47 PDT by Gyuyoung Kim
Modified: 2013-11-07 22:14 PST (History)
10 users (show)

See Also:


Attachments
Patch (5.35 KB, patch)
2013-11-03 00:56 PDT, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (5.36 KB, patch)
2013-11-03 07:31 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (5.33 KB, patch)
2013-11-03 21:49 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (5.71 KB, patch)
2013-11-05 00:11 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gyuyoung Kim 2013-11-03 00:47:48 PDT
There were some regressions in layout test when css-image-orientation is enabled. The regressions come from wrong early return in ENABLE(CSS_IMAGE_ORIENTATION) blocks. This patch fixes wrong early return, and enable the css-image-orientation on EFL and GTK by default.
Comment 1 Gyuyoung Kim 2013-11-03 00:56:55 PDT
Created attachment 215850 [details]
Patch
Comment 2 Gyuyoung Kim 2013-11-03 07:31:55 PST
Created attachment 215868 [details]
Patch
Comment 3 kov's GTK+ EWS bot 2013-11-03 08:04:32 PST
Comment on attachment 215868 [details]
Patch

Attachment 215868 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/20398067
Comment 4 Gyuyoung Kim 2013-11-03 08:10:23 PST
(In reply to comment #3)
> (From update of attachment 215868 [details])
> Attachment 215868 [details] did not pass gtk-ews (gtk):
> Output: http://webkit-queues.appspot.com/results/20398067

When I build gtk port with this patch, there is no build break. It seems to me gtk ews doesn't generate *CSSPropertyImageOrientation* with this patch. Is this right ?
Comment 5 Gyuyoung Kim 2013-11-03 21:49:32 PST
Created attachment 215888 [details]
Patch
Comment 6 kov's GTK+ EWS bot 2013-11-03 22:38:47 PST
Comment on attachment 215888 [details]
Patch

Attachment 215888 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/19648639
Comment 7 Gyuyoung Kim 2013-11-03 23:17:36 PST
CC'ing Beth and Martin, 

Beth, could you take a look this ?

Martin, in gtk build error cases, there is no build break when I build gtk port using this patch. It looks gtk ews doesn't support to build gtk port from scratch. Could you take a look this ?
Comment 8 Sergio Correia (qrwteyrutiyoup) 2013-11-04 12:41:23 PST
Comment on attachment 215888 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=215888&action=review

> Source/WebCore/ChangeLog:9
> +        when enabling css-image-orientaiton. This fixes those wrong implementation as well as enables it on EFL

nit: enabling css-image-orientation.

> Source/WebCore/loader/cache/CachedImage.cpp:266
> +            imageSize = static_cast<BitmapImage*>(m_image.get())->sizeRespectingOrientation(orientationDescription);

There's still a problem here, as we don't set imageSize if we don't get to this inner if, and hence get a zero sized image, since we won't fall in the outer else clause. I suggest you initialize imageSize in its declaration with m_image->size() and remove the outer else clause, to make sure we always have imageSize with a valid value. If needed, it will be changed accordingly inside ENABLE(CSS_IMAGE_ORIENTATION) / ENABLE(SVG).
Comment 9 Gyuyoung Kim 2013-11-05 00:11:27 PST
Created attachment 216009 [details]
Patch
Comment 10 Gyuyoung Kim 2013-11-05 00:14:27 PST
(In reply to comment #8)
> (From update of attachment 215888 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=215888&action=review
> 
> > Source/WebCore/ChangeLog:9
> > +        when enabling css-image-orientaiton. This fixes those wrong implementation as well as enables it on EFL
> 
> nit: enabling css-image-orientation.

Fixed. Thanks.

> > Source/WebCore/loader/cache/CachedImage.cpp:266
> > +            imageSize = static_cast<BitmapImage*>(m_image.get())->sizeRespectingOrientation(orientationDescription);
> 
> There's still a problem here, as we don't set imageSize if we don't get to this inner if, and hence get a zero sized image, since we won't fall in the outer else clause. I suggest you initialize imageSize in its declaration with m_image->size() and remove the outer else clause, to make sure we always have imageSize with a valid value.

Yes, we shouldn't make any situation that *imageSize* is not initialized. Fixed.
Comment 11 kov's GTK+ EWS bot 2013-11-05 01:18:02 PST
Comment on attachment 216009 [details]
Patch

Attachment 216009 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/19568955
Comment 12 WebKit Commit Bot 2013-11-05 01:37:58 PST
Comment on attachment 216009 [details]
Patch

Clearing flags on attachment: 216009

Committed r158659: <http://trac.webkit.org/changeset/158659>
Comment 13 WebKit Commit Bot 2013-11-05 01:38:01 PST
All reviewed patches have been landed.  Closing bug.
Comment 14 Gyuyoung Kim 2013-11-07 22:14:30 PST
*** Bug 123256 has been marked as a duplicate of this bug. ***