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

Unified Diff: third_party/WebKit/Source/core/paint/FramePainter.cpp

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 years, 9 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
Index: third_party/WebKit/Source/core/paint/FramePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/FramePainter.cpp b/third_party/WebKit/Source/core/paint/FramePainter.cpp
index 20dc935cca7e839d66904f78c61840724ab75510..99343de751b3f470d80d413ad0601cf885587a70 100644
--- a/third_party/WebKit/Source/core/paint/FramePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp
@@ -116,7 +116,6 @@ void FramePainter::paint(GraphicsContext& context,
ClipRecorder recorder(
context, *frameView().layoutView(), DisplayItem::kClipFrameScrollbars,
IntRect(IntPoint(), visibleAreaWithScrollbars.size()));
-
paintScrollbars(context, scrollViewDirtyRect);
}
}
@@ -198,10 +197,12 @@ void FramePainter::paintContents(GraphicsContext& context,
void FramePainter::paintScrollbars(GraphicsContext& context,
const IntRect& rect) {
if (frameView().horizontalScrollbar() &&
- !frameView().layerForHorizontalScrollbar())
+ (frameView().frame().document()->printing() ||
+ !frameView().layerForHorizontalScrollbar()))
paintScrollbar(context, *frameView().horizontalScrollbar(), rect);
if (frameView().verticalScrollbar() &&
- !frameView().layerForVerticalScrollbar())
+ (frameView().frame().document()->printing() ||
+ !frameView().layerForVerticalScrollbar()))
paintScrollbar(context, *frameView().verticalScrollbar(), rect);
if (frameView().layerForScrollCorner())
« no previous file with comments | « third_party/WebKit/Source/core/paint/BUILD.gn ('k') | third_party/WebKit/Source/core/paint/RemoteFramePainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698