| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index c7bd60281f12277fc42607777511075a526ae111..369c296f792365a9589eea05b7ec828e6ab40e44 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -1806,6 +1806,24 @@ void WebViewImpl::paint(WebCanvas* canvas, const WebRect& rect, PaintOptions opt
|
| }
|
| }
|
|
|
| +#if OS(ANDROID)
|
| +void WebViewImpl::paintCompositedDeprecated(WebCanvas* canvas, const WebRect& rect)
|
| +{
|
| + // Note: This method exists on OS(ANDROID) and will hopefully be
|
| + // removed once the link disambiguation feature renders using
|
| + // the compositor.
|
| + ASSERT(isAcceleratedCompositingActive());
|
| +
|
| + FrameView* view = page()->mainFrame()->view();
|
| + PaintBehavior oldPaintBehavior = view->paintBehavior();
|
| + view->setPaintBehavior(oldPaintBehavior | PaintBehaviorFlattenCompositingLayers);
|
| +
|
| + PageWidgetDelegate::paint(m_page.get(), pageOverlays(), canvas, rect, isTransparent() ? PageWidgetDelegate::Translucent : PageWidgetDelegate::Opaque);
|
| +
|
| + view->setPaintBehavior(oldPaintBehavior);
|
| +}
|
| +#endif
|
| +
|
| bool WebViewImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* callback)
|
| {
|
| if (!isAcceleratedCompositingActive())
|
|
|