Bug 106512 - [WK2][EFL] REGRESSION(r139189): MiniBrowser renders abnormally with -r option.
Summary: [WK2][EFL] REGRESSION(r139189): MiniBrowser renders abnormally with -r option.
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: Dongseong Hwang
URL:
Keywords:
Depends on: 106355 106499
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-09 17:42 PST by Dongseong Hwang
Modified: 2013-01-14 15:14 PST (History)
9 users (show)

See Also:


Attachments
Patch (11.89 KB, patch)
2013-01-09 17:58 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff
Patch (11.40 KB, patch)
2013-01-10 02:06 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff
Patch (11.44 KB, patch)
2013-01-10 20:18 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff
Patch (11.50 KB, patch)
2013-01-10 20:22 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff
Patch (11.52 KB, patch)
2013-01-10 20:34 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff
Patch (11.88 KB, patch)
2013-01-13 22:18 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dongseong Hwang 2013-01-09 17:42:23 PST
If running MiniBrowser with -r option to set deviceScaleFactor, MiniBrowser renders abnormally.
Comment 1 Dongseong Hwang 2013-01-09 17:58:40 PST
Created attachment 182034 [details]
Patch
Comment 2 Kenneth Rohde Christiansen 2013-01-09 19:11:22 PST
Comment on attachment 182034 [details]
Patch

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

> Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h:203
> +    void setContentsScaleFactor(float scaleFactor) { m_contentsScaleFactor = scaleFactor; }
> +    float contentsScaleFactor() const { return m_contentsScaleFactor; }

isnt it better to separate it into two here? like it having page scale factor as well as device scale factor.
Comment 3 Dongseong Hwang 2013-01-10 02:06:55 PST
Created attachment 182095 [details]
Patch
Comment 4 Dongseong Hwang 2013-01-10 02:16:24 PST
(In reply to comment #2)
> (From update of attachment 182034 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=182034&action=review
> 
> > Source/WebKit2/UIProcess/API/efl/EwkViewImpl.h:203
> > +    void setContentsScaleFactor(float scaleFactor) { m_contentsScaleFactor = scaleFactor; }
> > +    float contentsScaleFactor() const { return m_contentsScaleFactor; }
> 
> isnt it better to separate it into two here? like it having page scale factor as well as device scale factor.

The second patch changed from setContentsScaleFactor to setPageScaleFactor, and did not add setDeviceScaleFactor because it already exists.
It means PageViewportControllerClientEFL uses EwkViewImpl API differently to the previous patch.
Comment 5 Kenneth Rohde Christiansen 2013-01-10 04:32:29 PST
Comment on attachment 182095 [details]
Patch

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

> Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp:313
> -    transform.scale(1 / m_scaleFactor);
> +    transform.scale(1 / effectiveScaleFactor());

I would prefer

transform.scale(1 / m_pageScaleFactor)
transform.scale(1 / deviceScaleFactor())

That is much more clear
Comment 6 Dongseong Hwang 2013-01-10 20:18:57 PST
Created attachment 182247 [details]
Patch
Comment 7 Dongseong Hwang 2013-01-10 20:19:21 PST
(In reply to comment #5)
> (From update of attachment 182095 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=182095&action=review
> I would prefer
> 
> transform.scale(1 / m_pageScaleFactor)
> transform.scale(1 / deviceScaleFactor())
> 
> That is much more clear

Yeah, done.
Comment 8 Dongseong Hwang 2013-01-10 20:22:54 PST
Created attachment 182248 [details]
Patch
Comment 9 EFL EWS Bot 2013-01-10 20:29:26 PST
Comment on attachment 182248 [details]
Patch

Attachment 182248 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/15802256
Comment 10 Dongseong Hwang 2013-01-10 20:34:26 PST
Created attachment 182252 [details]
Patch
Comment 11 Kenneth Rohde Christiansen 2013-01-11 05:59:59 PST
Comment on attachment 182252 [details]
Patch

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

> Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp:415
> -        cairo_scale(graphicsContext.get(), m_scaleFactor, m_scaleFactor);
> +        cairo_scale(graphicsContext.get(), effectiveScaleFactor(), effectiveScaleFactor());

I would do the same here and get rid of that method
Comment 12 Dongseong Hwang 2013-01-13 22:18:46 PST
Created attachment 182508 [details]
Patch
Comment 13 Dongseong Hwang 2013-01-13 22:19:25 PST
(In reply to comment #11)
> I would do the same here and get rid of that method

Done. I removed effectiveScaleFactor().
Comment 14 WebKit Review Bot 2013-01-14 15:14:40 PST
Comment on attachment 182508 [details]
Patch

Clearing flags on attachment: 182508

Committed r139675: <http://trac.webkit.org/changeset/139675>
Comment 15 WebKit Review Bot 2013-01-14 15:14:45 PST
All reviewed patches have been landed.  Closing bug.