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

Unified Diff: Source/core/paint/ImagePainter.cpp

Issue 1236183003: Add 'printing' flag to PaintInfo (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PrintAdaption -> Printing; printing -> isPrinting; Comment fixups. 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/FramePainter.cpp ('k') | Source/core/paint/InlinePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ImagePainter.cpp
diff --git a/Source/core/paint/ImagePainter.cpp b/Source/core/paint/ImagePainter.cpp
index f8686b94b77140e159bad336c4a18dd34e1b9504..a765d4f5653a1b67662e6c9a3eac747bcacb85a8 100644
--- a/Source/core/paint/ImagePainter.cpp
+++ b/Source/core/paint/ImagePainter.cpp
@@ -35,7 +35,7 @@ void ImagePainter::paintAreaElementFocusRing(const PaintInfo& paintInfo)
{
Document& document = m_layoutImage.document();
- if (document.printing() || !document.frame()->selection().isFocusedAndActive())
+ if (paintInfo.isPrinting() || !document.frame()->selection().isFocusedAndActive())
return;
Element* focusedElement = document.focusedElement();
« no previous file with comments | « Source/core/paint/FramePainter.cpp ('k') | Source/core/paint/InlinePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698