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

Unified Diff: Source/platform/graphics/paint/DisplayItemListContextRecorder.h

Issue 1145843003: Fix Slimming Paint WebGL printing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Agreed upon version Created 5 years, 7 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/platform/graphics/GraphicsContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DisplayItemListContextRecorder.h
diff --git a/Source/platform/graphics/paint/DisplayItemListContextRecorder.h b/Source/platform/graphics/paint/DisplayItemListContextRecorder.h
index b2a68a249824600666ee9c3ec6dfb5fb33de60ab..a61a62090d36e5af045bb1e638cd3fef9ac5458b 100644
--- a/Source/platform/graphics/paint/DisplayItemListContextRecorder.h
+++ b/Source/platform/graphics/paint/DisplayItemListContextRecorder.h
@@ -25,6 +25,8 @@ public:
m_displayItemList = DisplayItemList::create();
m_displayItemListContext = adoptPtr(new GraphicsContext(m_displayItemList.get(),
context.contextDisabled() ? GraphicsContext::FullyDisabled : GraphicsContext::NothingDisabled));
+ m_displayItemListContext->setDeviceScaleFactor(context.deviceScaleFactor());
+ m_displayItemListContext->setPrinting(context.printing());
}
~DisplayItemListContextRecorder()
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698