summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/rendering/RenderLayerCompositor.cpp
diff options
context:
space:
mode:
authorShimeng (Simon) Wang <swang@google.com>2011-07-14 15:13:53 -0700
committerShimeng (Simon) Wang <swang@google.com>2011-07-14 16:05:01 -0700
commit7e6e4dd41950ef98c67ee99be2d67daf563009ca (patch)
treedfcb3b4553a47b1c830aeb722d14b4aaad4449b9 /Source/WebCore/rendering/RenderLayerCompositor.cpp
parent5dcd286d3e3e60f6a090f775a1fdceb40f578b75 (diff)
downloadexternal_webkit-7e6e4dd41950ef98c67ee99be2d67daf563009ca.zip
external_webkit-7e6e4dd41950ef98c67ee99be2d67daf563009ca.tar.gz
external_webkit-7e6e4dd41950ef98c67ee99be2d67daf563009ca.tar.bz2
Add android specific virtual function to GraphicsLayerClient.
This lets the GraphicsLayerClient instance decides whether it has owning RenderLayer, instead of using static_cast. This makes overflow'ed iframe scrollable again. This change also reverts Tenghui's CL: https://android-git.corp.google.com/g/#change,115508 Tested on scrollable iframe and inline video. issue: 4902019 Change-Id: I252f5432b0750c5cac0a4404663e1730ef006cfc
Diffstat (limited to 'Source/WebCore/rendering/RenderLayerCompositor.cpp')
-rw-r--r--Source/WebCore/rendering/RenderLayerCompositor.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/WebCore/rendering/RenderLayerCompositor.cpp b/Source/WebCore/rendering/RenderLayerCompositor.cpp
index 66dcf40..786f806 100644
--- a/Source/WebCore/rendering/RenderLayerCompositor.cpp
+++ b/Source/WebCore/rendering/RenderLayerCompositor.cpp
@@ -1520,15 +1520,6 @@ bool RenderLayerCompositor::needsContentsCompositingLayer(const RenderLayer* lay
bool RenderLayerCompositor::requiresScrollLayer(RootLayerAttachment attachment) const
{
-#if PLATFORM(ANDROID)
- // Recently, RenderLayerCompositor is changed to be a subclass of
- // GraphicsLayerClient, and it is used for iframe.
- // http://trac.webkit.org/changeset/75262
- // We have our own support for iframe, before we embrace this new approach,
- // we will disable it.
- // TODO: Investigate how to utilize this way to support iframe.
- return false;
-#endif
// We need to handle our own scrolling if we're:
return !m_renderView->frameView()->platformWidget() // viewless (i.e. non-Mac, or Mac in WebKit2)
|| attachment == RootLayerAttachedViaEnclosingFrame; // a composited frame on Mac