Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: Source/web/WebViewImpl.cpp

Issue 1224893004: Turn FrameView's paintBehavior into a real global (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improved change after the reviews. Still fails on Android. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/VideoPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 3b9352dfb0b5cd7588dce6db828fd7b68ee4e8f8..8818d09e0dec36c8c3462143717431868d9e54bf 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1929,13 +1929,11 @@ void WebViewImpl::paintCompositedDeprecated(WebCanvas* canvas, const WebRect& re
// the compositor.
ASSERT(isAcceleratedCompositingActive());
- FrameView* view = page()->deprecatedLocalMainFrame()->view();
- PaintBehavior oldPaintBehavior = view->paintBehavior();
- view->setPaintBehavior(oldPaintBehavior | PaintBehaviorFlattenCompositingLayers);
+ gGlobalPaintFlags = GlobalPaintFlattenCompositingLayers;
PageWidgetDelegate::paint(*m_page, pageOverlays(), canvas, rect, *m_page->deprecatedLocalMainFrame());
- view->setPaintBehavior(oldPaintBehavior);
+ gGlobalPaintFlags = GlobalPaintNormalPhase;
}
#endif
« no previous file with comments | « Source/core/paint/VideoPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698