Changeset 118895 in webkit


Ignore:
Timestamp:
May 29, 2012 11:17:46 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] The Page's deviceScaleFactor() is not being properly maintained
https://bugs.webkit.org/show_bug.cgi?id=87817

Patch by Max Feil <mfeil@rim.com> on 2012-05-29
Reviewed by Antonio Gomes.

This bug fix in WebKit/blackberry is needed by the changes for
fullscreen media control sizing in WebCore (bug 87551). The sizing
of controls depends on the page's deviceScaleFactor(), which was
not being maintained properly due to errors in logic. Viewport
changes from non-default to default were being erroneously
thrown out. Also, when the viewport did change back to default
the deviceScaleFactor was not being updated.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::recomputeVirtualViewportFromViewportArguments):
(BlackBerry::WebKit::WebPagePrivate::dispatchViewportPropertiesDidChange):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r118850 r118895  
    33593359{
    33603360    static const ViewportArguments defaultViewportArguments;
    3361     if (m_viewportArguments == defaultViewportArguments)
     3361    if (m_viewportArguments == defaultViewportArguments) {
     3362        m_page->setDeviceScaleFactor(1.0);
    33623363        return IntSize();
     3364    }
    33633365
    33643366    int desktopWidth = defaultMaxLayoutSize().width();
     
    33983400void WebPagePrivate::dispatchViewportPropertiesDidChange(const ViewportArguments& arguments)
    33993401{
    3400     static ViewportArguments defaultViewportArguments;
    3401     if (arguments == defaultViewportArguments)
     3402    if (arguments == m_viewportArguments)
    34023403        return;
    34033404
  • trunk/Source/WebKit/blackberry/ChangeLog

    r118850 r118895  
     12012-05-29  Max Feil  <mfeil@rim.com>
     2
     3        [BlackBerry] The Page's deviceScaleFactor() is not being properly maintained
     4        https://bugs.webkit.org/show_bug.cgi?id=87817
     5
     6        Reviewed by Antonio Gomes.
     7
     8        This bug fix in WebKit/blackberry is needed by the changes for
     9        fullscreen media control sizing in WebCore (bug 87551). The sizing
     10        of controls depends on the page's deviceScaleFactor(), which was
     11        not being maintained properly due to errors in logic. Viewport
     12        changes from non-default to default were being erroneously
     13        thrown out. Also, when the viewport did change back to default
     14        the deviceScaleFactor was not being updated.
     15
     16        * Api/WebPage.cpp:
     17        (BlackBerry::WebKit::WebPagePrivate::recomputeVirtualViewportFromViewportArguments):
     18        (BlackBerry::WebKit::WebPagePrivate::dispatchViewportPropertiesDidChange):
     19
    1202012-05-29  Arvid Nilsson  <anilsson@rim.com>
    221
Note: See TracChangeset for help on using the changeset viewer.