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

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

Issue 2163113002: Remove DebugRedFill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ChunkId
Patch Set: Created 4 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
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 fbe46a7a680b9041d36e48a71ece9f22e68c7c92..d03f1e6ffeda8895427739fad9b3455565d919b9 100644
--- a/third_party/WebKit/Source/core/paint/FramePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp
@@ -98,25 +98,6 @@ void FramePainter::paintContents(GraphicsContext& context, const GlobalPaintFlag
if (frameView().shouldThrottleRendering() || !document->isActive())
return;
-#ifndef NDEBUG
- bool fillWithRed;
- if (document->printing())
- fillWithRed = false; // Printing, don't fill with red (can't remember why).
- else if (frameView().frame().owner())
- fillWithRed = false; // Subframe, don't fill with red.
- else if (frameView().isTransparent())
- fillWithRed = false; // Transparent, don't fill with red.
- else if (globalPaintFlags & GlobalPaintSelectionOnly)
- fillWithRed = false; // Selections are transparent, don't fill with red.
- else
- fillWithRed = true;
-
- if (fillWithRed && !LayoutObjectDrawingRecorder::useCachedDrawingIfPossible(context, *frameView().layoutView(), DisplayItem::DebugRedFill)) {
- IntRect contentRect(IntPoint(), frameView().contentsSize());
- LayoutObjectDrawingRecorder drawingRecorder(context, *frameView().layoutView(), DisplayItem::DebugRedFill, contentRect);
- }
-#endif
-
LayoutView* layoutView = frameView().layoutView();
if (!layoutView) {
DLOG(ERROR) << "called FramePainter::paint with nil layoutObject";

Powered by Google App Engine
This is Rietveld 408576698