Summary: | PageViewportController::m_rawAttributes.devicePixelRatio is not initialized | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yael <yael> | ||||
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abecsi, kenneth, tonikitoo, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Yael
2012-10-18 13:28:01 PDT
Created attachment 169458 [details]
Patch
Comment on attachment 169458 [details] Patch Clearing flags on attachment: 169458 Committed r131802: <http://trac.webkit.org/changeset/131802> All reviewed patches have been landed. Closing bug. Comment on attachment 169458 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=169458&action=review > Source/WebKit2/UIProcess/PageViewportController.cpp:74 > + m_rawAttributes.devicePixelRatio = 1; ARgh, this device pixel ratio should be removed from here instead and we should use Page::deviceScaleFactor like everyone else (In reply to comment #4) > (From update of attachment 169458 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=169458&action=review > > > Source/WebKit2/UIProcess/PageViewportController.cpp:74 > > + m_rawAttributes.devicePixelRatio = 1; > > ARgh, this device pixel ratio should be removed from here instead and we should use Page::deviceScaleFactor like everyone else Since the recent refactor, we do not use m_rawAttributes.devicePixelRatio any more, so this patch does not really have an effect. I'll prepare a patch to remove it from the attributes. (In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 169458 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=169458&action=review > > > > > Source/WebKit2/UIProcess/PageViewportController.cpp:74 > > > + m_rawAttributes.devicePixelRatio = 1; > > > > ARgh, this device pixel ratio should be removed from here instead and we should use Page::deviceScaleFactor like everyone else > > Since the recent refactor, we do not use m_rawAttributes.devicePixelRatio any more, so this patch does not really have an effect. > > I'll prepare a patch to remove it from the attributes. Well, without this patch, I saw a black screen in my version of EFL MIniBrowser, after hooking it up with PageViewController. The reason was that the zoom level was infinity. m_rawAttributes.devicePixelRatio is actually used in computeMinimumScaleFactorForContentContained (ViewportAgruments.cpp) (In reply to comment #6) > (In reply to comment #5) > > (In reply to comment #4) > > > (From update of attachment 169458 [details] [details] [details]) > > > View in context: https://bugs.webkit.org/attachment.cgi?id=169458&action=review > > > > > > > Source/WebKit2/UIProcess/PageViewportController.cpp:74 > > > > + m_rawAttributes.devicePixelRatio = 1; > > > > > > ARgh, this device pixel ratio should be removed from here instead and we should use Page::deviceScaleFactor like everyone else > > > > Since the recent refactor, we do not use m_rawAttributes.devicePixelRatio any more, so this patch does not really have an effect. > > > > I'll prepare a patch to remove it from the attributes. > > Well, without this patch, I saw a black screen in my version of EFL MIniBrowser, after hooking it up with PageViewController. > The reason was that the zoom level was infinity. > > m_rawAttributes.devicePixelRatio is actually used in computeMinimumScaleFactorForContentContained (ViewportAgruments.cpp) Yes, you are right restrictMinimumScaleFactorToViewportSize and computeMinimumScaleFactorForContentContained could be called before didChangeViewportAttributes. |