Bug 107653 - [WK2] Add applyDeviceScaleFactorInCompositor and applyPageScaleFactorInCompositor APIs to WebPreferences.
Summary: [WK2] Add applyDeviceScaleFactorInCompositor and applyPageScaleFactorInCompos...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dongseong Hwang
URL:
Keywords:
Depends on:
Blocks: 105978
  Show dependency treegraph
 
Reported: 2013-01-23 02:20 PST by Dongseong Hwang
Modified: 2013-01-24 00:40 PST (History)
5 users (show)

See Also:


Attachments
Patch (3.59 KB, patch)
2013-01-23 02:26 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff
Patch (34.03 KB, patch)
2013-01-23 03:39 PST, Dongseong Hwang
no flags Details | Formatted Diff | Diff
Patch (3.63 KB, patch)
2013-01-23 21:49 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-23 02:20:54 PST
EFL and Qt will use this preferences.
Comment 1 Dongseong Hwang 2013-01-23 02:26:31 PST
Created attachment 184185 [details]
Patch
Comment 2 Dongseong Hwang 2013-01-23 03:39:57 PST
Created attachment 184192 [details]
Patch
Comment 3 Sam Weinig 2013-01-23 17:04:17 PST
Comment on attachment 184185 [details]
Patch

This doesn't actually expose the preference to API and you also have not explained what this would be used for and why it is necessary.
Comment 4 Dongseong Hwang 2013-01-23 21:40:25 PST
(In reply to comment #3)
> (From update of attachment 184185 [details])
> This doesn't actually expose the preference to API and you also have not explained what this would be used for and why it is necessary.

It is very reasonable concern. I did block Bug 105978 that uses this preference, but I did not explain enough. sorry for that.

EFL and Qt want to use page scale in WebCore as Chromium did. So EFL and Qt want to set applyDeviceScaleFactorInCompositor and applyPageScaleFactorInCompositor as Chromium did.
EFL and Qt want to set both in UI Process, so we need to add new API in WebPreferencesStore although we don't add new API in WK2 API (WKPreferences). (I made a mistake about title.)

Could we add new those APIs in WebPreferencesStore?
Comment 5 Dongseong Hwang 2013-01-23 21:49:01 PST
Created attachment 184399 [details]
Patch
Comment 6 Kenneth Rohde Christiansen 2013-01-24 00:28:02 PST
(In reply to comment #3)
> (From update of attachment 184185 [details])
> This doesn't actually expose the preference to API and you also have not explained what this would be used for and why it is necessary.

I think the point is that it is not a user preference, but something which should be set by out view. Dongsung, is there a reason why this cannot always be set in the WebProcess, like together with turning on fixed layouting?
Comment 7 Dongseong Hwang 2013-01-24 00:40:29 PST
(In reply to comment #6)
> (In reply to comment #3)
> > (From update of attachment 184185 [details] [details])
> > This doesn't actually expose the preference to API and you also have not explained what this would be used for and why it is necessary.
> 
> I think the point is that it is not a user preference, but something which should be set by out view. Dongsung, is there a reason why this cannot always be set in the WebProcess, like together with turning on fixed layouting?

aha, do you mean it is fine that setting them in WebPage::setUseFixedLayout(bool fixed)?
I did not do that because I did not fully understand what is FixedLayout.

Ok, I see. This bug is invalid.

Thank kenneth and sam.