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"; |