Changeset 181038 in webkit


Ignore:
Timestamp:
Mar 4, 2015 3:18:36 PM (9 years ago)
Author:
dino@apple.com
Message:

REGRESSION (r179597): Can't see power saver banner for plugins
https://bugs.webkit.org/show_bug.cgi?id=142312
<rdar://problem/20040517>

Reviewed by Brent Fulgham.

We were being a bit too restrictive when deciding a child
should not create a renderer. All shadow root children
of the snapshotted plugin need one.

  • html/HTMLPlugInImageElement.cpp:

(WebCore::HTMLPlugInImageElement::childShouldCreateRenderer):
Test if we're part of the shadow tree.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r181037 r181038  
     12015-03-04  Dean Jackson  <dino@apple.com>
     2
     3        REGRESSION (r179597): Can't see power saver banner for plugins
     4        https://bugs.webkit.org/show_bug.cgi?id=142312
     5        <rdar://problem/20040517>
     6
     7        Reviewed by Brent Fulgham.
     8
     9        We were being a bit too restrictive when deciding a child
     10        should not create a renderer. All shadow root children
     11        of the snapshotted plugin need one.
     12
     13        * html/HTMLPlugInImageElement.cpp:
     14        (WebCore::HTMLPlugInImageElement::childShouldCreateRenderer):
     15        Test if we're part of the shadow tree.
     16
    1172015-03-03  Andy Estes  <aestes@apple.com>
    218
  • trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp

    r180966 r181038  
    224224bool HTMLPlugInImageElement::childShouldCreateRenderer(const Node& child) const
    225225{
    226     if (is<RenderSnapshottedPlugIn>(renderer()) && !partOfSnapshotOverlay(&child))
     226    if (is<RenderSnapshottedPlugIn>(renderer()) && !hasShadowRootParent(child))
    227227        return false;
    228228
Note: See TracChangeset for help on using the changeset viewer.