⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118625 in webkit


Ignore:
Timestamp:
May 27, 2012, 7:17:58 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Web page fails to render after clicking link with target=_blank
https://bugs.webkit.org/show_bug.cgi?id=87562

Patch by Arvid Nilsson <anilsson@rim.com> on 2012-04-12
Reviewed by Antonio Gomes.

Clicking such a link opens a new tab. The compositor was briefly in
charge of drawing the root layer while the backing store was inactive
and the user was looking at the other tab. The problem was that the
compositor believed it was still painting the root layer even after the
backing store became active again. The flag was not properly cleared
when turning off compositing.

Fixed by returning false from drawsRootLayer() if we don't have a root
layer.

Reviewed internally by Filip Spacek.

PR #149342

  • Api/WebPageCompositor.cpp:

(BlackBerry::WebKit::WebPageCompositorPrivate::drawsRootLayer):

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

Legend:

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

    r114624 r118625  
    110110bool WebPageCompositorPrivate::drawsRootLayer() const
    111111{
    112     return m_drawsRootLayer;
     112    return m_rootLayer && m_drawsRootLayer;
    113113}
    114114
  • trunk/Source/WebKit/blackberry/ChangeLog

    r118530 r118625  
     12012-05-27  Arvid Nilsson  <anilsson@rim.com>
     2
     3        2012-04-12  Arvid Nilsson  <anilsson@rim.com>
     4
     5        [BlackBerry] Web page fails to render after clicking link with target=_blank
     6        https://bugs.webkit.org/show_bug.cgi?id=87562
     7
     8        Reviewed by Antonio Gomes.
     9
     10        Clicking such a link opens a new tab. The compositor was briefly in
     11        charge of drawing the root layer while the backing store was inactive
     12        and the user was looking at the other tab. The problem was that the
     13        compositor believed it was still painting the root layer even after the
     14        backing store became active again. The flag was not properly cleared
     15        when turning off compositing.
     16
     17        Fixed by returning false from drawsRootLayer() if we don't have a root
     18        layer.
     19
     20        Reviewed internally by Filip Spacek.
     21
     22        PR #149342
     23
     24        * Api/WebPageCompositor.cpp:
     25        (BlackBerry::WebKit::WebPageCompositorPrivate::drawsRootLayer):
     26
    1272012-05-24  Jacky Jiang  <zhajiang@rim.com>
    228
Note: See TracChangeset for help on using the changeset viewer.