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

Changeset 107276 in webkit


Ignore:
Timestamp:
Feb 9, 2012, 12:43:02 PM (15 years ago)
Author:
enne@google.com
Message:

Merge 107024 - Properly detect top level frames when propogating compositing
https://bugs.webkit.org/show_bug.cgi?id=78033

Reviewed by James Robinson.

There's no need to enumerate all tag names when searching for a
top-level frame. If a render view's document has a frame, then that
frame is not the top-level one.

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingFrame):

  • rendering/RenderLayerCompositor.h:

(RenderLayerCompositor):

TBR=enne@google.com
Review URL: https://chromiumcodereview.appspot.com/9369039

Location:
branches/chromium/1025/Source/WebCore/rendering
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/chromium/1025/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r106138 r107276  
    12661266    // is to have the parent document become composited too. However, this can cause problems on platforms that
    12671267    // use native views for frames (like Mac), so disable that behavior on those platforms for now.
    1268     HTMLFrameOwnerElement* ownerElement = enclosingFrameElement();
     1268    HTMLFrameOwnerElement* ownerElement = m_renderView->document()->ownerElement();
    12691269    RenderObject* renderer = ownerElement ? ownerElement->renderer() : 0;
    12701270
     
    12951295
    12961296    return false;
    1297 }
    1298 
    1299 HTMLFrameOwnerElement* RenderLayerCompositor::enclosingFrameElement() const
    1300 {
    1301     if (HTMLFrameOwnerElement* ownerElement = m_renderView->document()->ownerElement())
    1302         return (ownerElement->hasTagName(iframeTag) || ownerElement->hasTagName(frameTag) || ownerElement->hasTagName(objectTag)) ? ownerElement : 0;
    1303 
    1304     return 0;
    13051297}
    13061298
  • branches/chromium/1025/Source/WebCore/rendering/RenderLayerCompositor.h

    r105757 r107276  
    179179    bool shouldPropagateCompositingToEnclosingFrame() const;
    180180
    181     HTMLFrameOwnerElement* enclosingFrameElement() const;
    182 
    183181    static RenderLayerCompositor* frameContentsCompositor(RenderPart*);
    184182    // Return true if the layers changed.
Note: See TracChangeset for help on using the changeset viewer.