Bug 103745 - [EFL][AC] MiniBrowser starts with a black empty view before painting a web page
Summary: [EFL][AC] MiniBrowser starts with a black empty view before painting a web page
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Joone Hur
URL:
Keywords:
Depends on:
Blocks: 103105 111543
  Show dependency treegraph
 
Reported: 2012-11-30 07:26 PST by Joone Hur
Modified: 2013-04-17 14:05 PDT (History)
9 users (show)

See Also:


Attachments
Patch (2.73 KB, patch)
2013-03-22 17:40 PDT, Joone Hur
no flags Details | Formatted Diff | Diff
Patch (2.52 KB, patch)
2013-03-27 09:14 PDT, Joone Hur
no flags Details | Formatted Diff | Diff
Patch (2.56 KB, patch)
2013-03-27 11:56 PDT, Joone Hur
kenneth: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff
Patch (2.56 KB, patch)
2013-04-17 13:20 PDT, Joone Hur
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joone Hur 2012-11-30 07:26:59 PST
Launch MiniBrowser, you will see the black view before loading google.com.
Comment 1 Joone Hur 2013-03-22 17:40:05 PDT
Created attachment 194668 [details]
Patch
Comment 2 Mikhail Pozdnyakov 2013-03-25 01:43:12 PDT
Comment on attachment 194668 [details]
Patch

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

> Source/WebKit2/UIProcess/API/efl/EwkView.cpp:554
> +        evas_object_show(sd->image);

think this snippet could be a static function accepting 'sd'

> Source/WebKit2/UIProcess/API/efl/EwkView.h:165
> +    bool isAccelerated() { return m_isAccelerated; }

We actually do not need this getter, m_isAccelerated is still accessed within the class only
Comment 3 Joone Hur 2013-03-25 16:01:28 PDT
Comment on attachment 194668 [details]
Patch

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

>> Source/WebKit2/UIProcess/API/efl/EwkView.cpp:554
>> +        evas_object_show(sd->image);
> 
> think this snippet could be a static function accepting 'sd'

Do you mean the above 3 lines of code could be a staic function? If so, it could be only used 2 times.

>> Source/WebKit2/UIProcess/API/efl/EwkView.h:165
>> +    bool isAccelerated() { return m_isAccelerated; }
> 
> We actually do not need this getter, m_isAccelerated is still accessed within the class only

Okay, I will fix this.
Comment 4 Mikhail Pozdnyakov 2013-03-26 00:25:10 PDT
(In reply to comment #3)
> (From update of attachment 194668 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=194668&action=review
> 
> >> Source/WebKit2/UIProcess/API/efl/EwkView.cpp:554
> >> +        evas_object_show(sd->image);
> > 
> > think this snippet could be a static function accepting 'sd'
> 
> Do you mean the above 3 lines of code could be a staic function? If so, it could be only used 2 times.
yeah, I mean those 3 lines. Think it will improve code-readability.
Comment 5 Joone Hur 2013-03-27 09:14:10 PDT
Created attachment 195338 [details]
Patch
Comment 6 Kenneth Rohde Christiansen 2013-03-27 09:26:24 PDT
Comment on attachment 195338 [details]
Patch

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

> Source/WebKit2/UIProcess/API/efl/EwkView.cpp:561
> +        // Make Evas objects visible here in order not to paint empty Evas objects with black color.
> +        showEvasObjects(sd);

Isn't it more a showEvasObjectsIfNeeded(), I suppose those methods does nothing if already visible...
Comment 7 Joone Hur 2013-03-27 10:44:18 PDT
(In reply to comment #6)
> (From update of attachment 195338 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=195338&action=review
> 
> > Source/WebKit2/UIProcess/API/efl/EwkView.cpp:561
> > +        // Make Evas objects visible here in order not to paint empty Evas objects with black color.
> > +        showEvasObjects(sd);
> 
> Isn't it more a showEvasObjectsIfNeeded(), I suppose those methods does nothing if already visible...

showEvasObjectsIfNeeded makes more sense. I will update the patch soon.
Comment 8 Joone Hur 2013-03-27 11:56:26 PDT
Created attachment 195372 [details]
Patch
Comment 9 Kenneth Rohde Christiansen 2013-03-27 13:20:54 PDT
You need an owner to sign this one off
Comment 10 Benjamin Poulain 2013-04-16 15:02:47 PDT
Comment on attachment 195372 [details]
Patch

I sign off on this for WebKit2.
Comment 11 WebKit Commit Bot 2013-04-16 16:02:01 PDT
Comment on attachment 195372 [details]
Patch

Rejecting attachment 195372 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 195372, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
ource/WebKit2/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebKit2/UIProcess/API/efl/EwkView.cpp
Hunk #1 succeeded at 130 (offset 2 lines).
Hunk #2 FAILED at 559.
Hunk #3 succeeded at 1133 (offset -14 lines).
1 out of 3 hunks FAILED -- saving rejects to file Source/WebKit2/UIProcess/API/efl/EwkView.cpp.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Kenneth Rohde Christiansen']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.appspot.com/results/32149
Comment 12 Joone Hur 2013-04-17 13:20:31 PDT
Created attachment 198601 [details]
Patch
Comment 13 Joone Hur 2013-04-17 13:49:41 PDT
(In reply to comment #12)
> Created an attachment (id=198601) [details]
> Patch

Patch rebased on master
Comment 14 WebKit Commit Bot 2013-04-17 13:50:13 PDT
Comment on attachment 198601 [details]
Patch

Clearing flags on attachment: 198601

Committed r148633: <http://trac.webkit.org/changeset/148633>