Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting devicePixelRatio #5

Closed
wants to merge 1 commit into from
Closed

Allow setting devicePixelRatio #5

wants to merge 1 commit into from

Conversation

DeviaVir
Copy link

Attempting to revive ariya/phantomjs#12839 upstream, this should allow webpage.ccp next to make use of this and actually set and overwrite the pixelratio.

Refer to ariya/phantomjs#10964 for the what and why.

@@ -305,6 +305,8 @@ class QWEBKITWIDGETS_EXPORT QWebPage : public QObject {
virtual void triggerAction(WebAction action, bool checked = false);

QSize viewportSize() const;
void setDevicePixelRatio(float ratio);
float devicePixelRatio() const;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't use float here, please keep it consistent with qreal.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annulen
Copy link

annulen commented Jan 28, 2016

It looks like such function existed in upstream (though in WebKit2 API), but was removed, and HiDPI issue was fixed in a different way:
https://bugs.webkit.org/show_bug.cgi?id=104574

@DeviaVir
Copy link
Author

DeviaVir commented Feb 8, 2016

@ariya Apologies for the delay, was on a short holiday. Does this address your feedback correctly?

@janpaul123
Copy link

Would love to see this go through, especially since it seems such an easy fix. :)

@himedlooff
Copy link

👍

@DeviaVir
Copy link
Author

@ariya I have updated this branch so it's mergeable again.

@EiNSTeiN-
Copy link

@vitallium could this be merged please?

@vitallium
Copy link
Owner

vitallium commented Aug 23, 2016

@EiNSTeiN- unfortunately, no. We're switching to a fresh QtWebKit version (https://github.com/annulen/webkit). And we decided to not merge anything in this repo, because it will be deleted soon. Sorry for that! But new QtWebKit has awesome features and improvements. We hope you will like it.

But, I suggest @DeviaVir to open the same PR against the new QtWebKit. I think we will merge it.

@EiNSTeiN-
Copy link

EiNSTeiN- commented Aug 23, 2016

@ariya what is the plan for ariya/phantomjs#13942 regarding what @vitallium just said? I'm really hoping ariya/phantomjs#13942 would be merged to get useable pixel ratio config in phantomjs, but it looks like it won't happen here.

@vitallium
Copy link
Owner

@DeviaVir I suggest you to submit the same patch here
This repo is deprecated since 2.5 beta release.

@DeviaVir
Copy link
Author

qtwebkit/qtwebkit#515

@DeviaVir DeviaVir closed this Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants