Bug 43528 - [EFL] Screen doesn't be rendered when changing size of EWebLauncher
Summary: [EFL] Screen doesn't be rendered when changing size of EWebLauncher
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 18:22 PDT by Ryuan Choi
Modified: 2010-12-24 12:39 PST (History)
11 users (show)

See Also:


Attachments
error screen (236.65 KB, image/png)
2010-08-04 18:23 PDT, Ryuan Choi
no flags Details
Patch (1.24 KB, patch)
2010-08-04 19:17 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (1.83 KB, patch)
2010-08-16 07:21 PDT, Ryuan Choi
no flags Details | Formatted Diff | Diff
Patch (1.94 KB, patch)
2010-09-29 04:08 PDT, Ryuan Choi
kenneth: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff
merged patch (1.92 KB, patch)
2010-12-24 10:24 PST, Adam Barth
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 2010-08-04 18:22:10 PDT
when resizing EWebLauncher, Contents wasn't rendered properly.

I suspect _ewk_view_smart_contents_resize
Comment 1 Ryuan Choi 2010-08-04 18:23:29 PDT
Created attachment 63526 [details]
error screen
Comment 2 Ryuan Choi 2010-08-04 19:17:17 PDT
Created attachment 63529 [details]
Patch
Comment 3 Rafael Antognolli 2010-08-05 10:17:32 PDT
Well, I don't think you should set the size of the view to the value passed to _ewk_view_smart_contents_resize, since they have different meanings.

Can you explain what is the bug you have when resizing? It seems to work fine here.
Comment 4 Ryuan Choi 2010-08-05 16:41:48 PDT
(In reply to comment #3)
> Well, I don't think you should set the size of the view to the value passed to _ewk_view_smart_contents_resize, since they have different meanings.
> 
> Can you explain what is the bug you have when resizing? It seems to work fine here.

I think that you can see attached image when you visit http://www.naver.com
When we resizing at EWebLauncher, EWK looks not render additional area like attached image.
Comment 5 Eric Seidel (no email) 2010-08-06 14:38:26 PDT
Comment on attachment 63529 [details]
Patch

OK.  Is your name normally written in all lowercase as it is in the ChangeLog?
Comment 6 Eric Seidel (no email) 2010-08-06 14:38:58 PDT
My review is more of a rubber-stamp.
Comment 7 Rafael Antognolli 2010-08-06 14:51:39 PDT
I still strongly disagree with this. From my point of view, you shouldn't set the View size to the Contents size. They are for different purposes, and have different meanings.
Comment 8 Eric Seidel (no email) 2010-08-06 14:57:13 PDT
Comment on attachment 63529 [details]
Patch

I'll let you all fight it out.
Comment 9 Ryuan Choi 2010-08-08 19:43:46 PDT
(In reply to comment #8)
> (From update of attachment 63529 [details])
> I'll let you all fight it out.

(In reply to comment #7)
> I still strongly disagree with this. From my point of view, you shouldn't set the View size to the Contents size. They are for different purposes, and have different meanings.

I simply referenced in gtk version.
but, I found that this issue occur at not EWK-demo, but EWeblauncher.
I think that we need to discuss.
Comment 10 Ryuan Choi 2010-08-09 04:11:29 PDT
(In reply to comment #9)
> (In reply to comment #8)
> > (From update of attachment 63529 [details] [details])
> > I'll let you all fight it out.
> 
> (In reply to comment #7)
> > I still strongly disagree with this. From my point of view, you shouldn't set the View size to the Contents size. They are for different purposes, and have different meanings.
> 
> I simply referenced in gtk version.
> but, I found that this issue occur at not EWK-demo, but EWeblauncher.
> I think that we need to discuss.

I realized I create stupid solution.
After checking more, I'll make real solution.
Comment 11 Ryuan Choi 2010-08-16 07:21:08 PDT
Created attachment 64492 [details]
Patch
Comment 12 Ryuan Choi 2010-08-16 07:25:15 PDT
I found real problem.
It's not WebKit/EFL bug but EWeblauncher's.

_ewk_view_smart_calculate after calling on_resize can't invalidate contents when resizing EWeblauncher.
so, I removed on_resize.
I believe that we don't need to call ewk_view_fixed_layout_size_set when resizing.
Comment 13 Rafael Antognolli 2010-08-16 10:30:55 PDT
This is a better solution. But I think we still should investigate later if this is a bug on our fixed_layout_set function.
Comment 14 Ryuan Choi 2010-08-16 17:06:34 PDT
(In reply to comment #13)
> This is a better solution. But I think we still should investigate later if this is a bug on our fixed_layout_set function.

I believe that fixed_layout_set is not related with this bug.
but I agree we need to know whether fixed_layout_set itself also is a bug.

I can explain what I investigate.
problem is that on_resize called it with new (w,h) before calling _ewk_view_smart_calculate
It makes confusion in FrameView::layout because FrameView::m_size was already changd by fixed_layout_set.
so m_doFullRepaint can't become true although we called resize in _ewk_view_smart_calculate

Should fixed_layout_set change m_size?
Comment 15 Ryuan Choi 2010-09-29 04:08:53 PDT
Created attachment 69177 [details]
Patch
Comment 16 Ryuan Choi 2010-09-29 04:13:59 PDT
(In reply to comment #15)
> Created an attachment (id=69177) [details]
> Patch

I update patch because location of EWeblauncher was moved from WebKit/efl/ to WebKitTools/
And also update Changelog to clarify why I removed on_resize.
Comment 17 Kenneth Rohde Christiansen 2010-12-24 03:03:29 PST
Comment on attachment 69177 [details]
Patch

I trust you on this one.
Comment 18 WebKit Commit Bot 2010-12-24 03:06:45 PST
Comment on attachment 69177 [details]
Patch

Rejecting attachment 69177 [details] from commit-queue.

Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-3', 'apply-attachment', '--no-update', '--non-interactive', 69177]" exit_code: 2
Last 500 characters of output:
 leading up to this was:
--------------------------
|Index: WebKitTools/EWebLauncher/main.c
|===================================================================
|--- WebKitTools/EWebLauncher/main.c	(revision 68637)
|+++ WebKitTools/EWebLauncher/main.c	(working copy)
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--reviewer', u'Kenneth Rohde Christiansen', u'--force']" exit_code: 1

Full output: http://queues.webkit.org/results/7271162
Comment 19 Eric Seidel (no email) 2010-12-24 08:31:35 PST
WebKitTools recently moved to Tools.  abarth mentioned the possibility of creating a patch to svn-apply to automatically fix patches when applying.  But until such a change exists, we'll need to fix this patch to apply to Tools instead of WebKitTools.
Comment 20 Adam Barth 2010-12-24 10:24:28 PST
Created attachment 77419 [details]
merged patch

Here's an attempt to merge the patch by editing the diff.
Comment 21 WebKit Commit Bot 2010-12-24 10:43:50 PST
Comment on attachment 77419 [details]
merged patch

Clearing flags on attachment: 77419

Committed r74640: <http://trac.webkit.org/changeset/74640>
Comment 22 WebKit Commit Bot 2010-12-24 10:43:59 PST
All reviewed patches have been landed.  Closing bug.
Comment 23 WebKit Review Bot 2010-12-24 12:39:59 PST
http://trac.webkit.org/changeset/74640 might have broken GTK Linux 32-bit Release