Bug 79853 - [EFL][DRT] WebKit/DRT should not paint webview for the pixel tests.
Summary: [EFL][DRT] WebKit/DRT should not paint webview for the pixel tests.
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryuan Choi
URL:
Keywords:
Depends on: 81315
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-28 17:52 PST by Ryuan Choi
Modified: 2014-07-17 21:10 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.32 KB, patch)
2012-02-28 18:08 PST, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (3.43 KB, patch)
2012-04-29 19:51 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryuan Choi 2012-02-28 17:52:25 PST
For now, some results of pixel test are wrong.
(For example, LayoutTests/fast/events/autoscroll.html)

In order to fix this, I suggest capturing Ecore_Evas instead of painting webview.
Comment 1 Ryuan Choi 2012-02-28 18:08:27 PST
Created attachment 129368 [details]
Patch
Comment 2 Ryuan Choi 2012-02-28 18:44:49 PST
Comment on attachment 129368 [details]
Patch

clear flags until I check how to rebase test cases.
Comment 3 Ryuan Choi 2012-03-01 23:22:43 PST
Comment on attachment 129368 [details]
Patch

I checked png results which is newly failed.

Some test cases are because of scrollbar.
Although mockScrollbar is enabled, WebKit/Efl create native scrollbar.
I will create new bug to fix them.

The other test case is fast/forms/textarea-placeholder-set-attribute.html
and it can be reproduce on EWeblauncher. (not always. 50% reproduced)

So, I believe that patch is valid for bug.

Could you review this?
Comment 4 Ryuan Choi 2012-03-24 23:31:24 PDT
Comment on attachment 129368 [details]
Patch

I realize that DRT/Efl(tiled) can not render scrolled contents with this patch correctly.
(ex - compositing/geometry/fixed-position.html)

So I cleared flags until I found proper way.

BTW
Comment 5 Ryuan Choi 2012-04-26 00:24:54 PDT
(In reply to comment #4)
> (From update of attachment 129368 [details])
> I realize that DRT/Efl(tiled) can not render scrolled contents with this patch correctly.
> (ex - compositing/geometry/fixed-position.html)

I created Bug 84933 for compositing/geometry/fixed-position.html
Comment 6 Raphael Kubo da Costa (:rakuco) 2012-04-26 19:14:13 PDT
Comment on attachment 129368 [details]
Patch

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

Looks good API-wise, just make sure it doesn't cause test regressions.

> Tools/DumpRenderTree/efl/PixelDumpSupportEfl.cpp:53
> +    RefPtr<cairo_surface_t> viewSurface = adoptRef(cairo_image_surface_create_for_data((unsigned char*)pixels, CAIRO_FORMAT_ARGB32, width, height, width * 4));

Please use a C++-style cast here.
Comment 7 Ryuan Choi 2012-04-29 19:51:52 PDT
Created attachment 139416 [details]
Patch
Comment 8 Ryuan Choi 2012-04-29 19:53:50 PDT
(In reply to comment #6)
> (From update of attachment 129368 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=129368&action=review
> 
> Looks good API-wise, just make sure it doesn't cause test regressions.
> 

Thanks.

There are no regression in my local.
(compositing/geometry/fixed-position.html is in Skipped now.)

> > Tools/DumpRenderTree/efl/PixelDumpSupportEfl.cpp:53
> > +    RefPtr<cairo_surface_t> viewSurface = adoptRef(cairo_image_surface_create_for_data((unsigned char*)pixels, CAIRO_FORMAT_ARGB32, width, height, width * 4));
> 
> Please use a C++-style cast here.

Done.
Comment 9 Chang Shu 2012-05-08 11:49:15 PDT
Comment on attachment 139416 [details]
Patch

The comments in 81315 mentioned this bug. Does one depend on the other?
Comment 10 Raphael Kubo da Costa (:rakuco) 2012-05-08 12:46:35 PDT
(In reply to comment #9)
> (From update of attachment 139416 [details])
> The comments in 81315 mentioned this bug. Does one depend on the other?

I believe so.
Comment 11 Eric Seidel (no email) 2012-05-08 15:38:20 PDT
Comment on attachment 139416 [details]
Patch

I'm happy to rubber-stamp this, but I"m not very useful for a real review.
Comment 12 WebKit Review Bot 2012-05-08 15:49:26 PDT
Comment on attachment 139416 [details]
Patch

Clearing flags on attachment: 139416

Committed r116461: <http://trac.webkit.org/changeset/116461>
Comment 13 WebKit Review Bot 2012-05-08 15:49:31 PDT
All reviewed patches have been landed.  Closing bug.
Comment 14 Raphael Kubo da Costa (:rakuco) 2012-05-18 14:10:17 PDT
Reopening to get some feedback. This commit appears to have broken the painting of scrollbars with both backing stores when running run-webkit-tests with --pixel-tests. Try running RWT on fast/box-sizing, for example.
Comment 15 Ryuan Choi 2012-05-21 04:19:13 PDT
(In reply to comment #14)
> Reopening to get some feedback. This commit appears to have broken the painting of scrollbars with both backing stores when running run-webkit-tests with --pixel-tests. Try running RWT on fast/box-sizing, for example.

I checked and reproduces it.

Now, I realized that backing stores can not render mock scrollbars because they call Frame::paintContents instead of ScrollView::paint.

Sorry, I will find a way to fix it but it will take more time.
Comment 16 Raphael Kubo da Costa (:rakuco) 2012-05-21 16:51:19 PDT
I will revert this for now then, we can't stay with the buggy code.
Comment 17 Raphael Kubo da Costa (:rakuco) 2012-05-21 19:56:00 PDT
Reverted in <http://trac.webkit.org/changeset/117879>.
Comment 18 Ryuan Choi 2014-07-17 21:10:03 PDT
ewebkit1 was dropped.