WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
97215
[Qt] Make sure that desktop pages honour the devicePixelRatio
https://bugs.webkit.org/show_bug.cgi?id=97215
Summary
[Qt] Make sure that desktop pages honour the devicePixelRatio
Jocelyn Turcotte
Reported
2012-09-20 08:04:13 PDT
[Qt] Make sure that desktop pages honour the devicePixelRatio
Attachments
Patch
(2.08 KB, patch)
2012-09-20 08:14 PDT
,
Jocelyn Turcotte
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jocelyn Turcotte
Comment 1
2012-09-20 08:14:29 PDT
Created
attachment 164921
[details]
Patch
Kenneth Rohde Christiansen
Comment 2
2012-09-20 23:33:13 PDT
Comment on
attachment 164921
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=164921&action=review
> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:943 > + int minimumLayoutFallbackWidth = std::max(settings->layoutFallbackWidth(), int(m_viewportSize.width() / m_page->deviceScaleFactor()));
so maybe ceil or lrint would make more sense?
Jocelyn Turcotte
Comment 3
2012-09-21 03:43:06 PDT
(In reply to
comment #2
)
> (From update of
attachment 164921
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=164921&action=review
> > > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:943 > > + int minimumLayoutFallbackWidth = std::max(settings->layoutFallbackWidth(), int(m_viewportSize.width() / m_page->deviceScaleFactor())); > > so maybe ceil or lrint would make more sense?
Humm can't say, overall this is the desktop equivalent of the conversion to int did in WebPage::sendViewportAttributesChanged: setResizesToContentsUsingLayoutSize(IntSize(static_cast<int>(attr.layoutSize.width()), static_cast<int>(attr.layoutSize.height()))); So if we change one we should change the other. Overall this can mean a difference of 1 pixel to the layout size, which could give a 1.501 scale instead of 1.502, nothing noticeable by the user.
WebKit Review Bot
Comment 4
2012-09-25 08:49:56 PDT
Comment on
attachment 164921
[details]
Patch Clearing flags on attachment: 164921 Committed
r129514
: <
http://trac.webkit.org/changeset/129514
>
WebKit Review Bot
Comment 5
2012-09-25 08:49:59 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug