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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2749023004: Replace SPv2 check with DCHECK when it is always false (Closed)
Patch Set: Add DCHECK 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index a81c4447504eac6862e5716524517fc60d42c3dc..4959e65cffdd86d3499cbe53c908e02024163cdf 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3234,18 +3234,17 @@ void FrameView::paintTree() {
}
void FrameView::paintGraphicsLayerRecursively(GraphicsLayer* graphicsLayer) {
+ DCHECK(!RuntimeEnabledFeatures::slimmingPaintV2Enabled());
if (graphicsLayer->drawsContent()) {
graphicsLayer->paint(nullptr);
notifyPaint(graphicsLayer->getPaintController());
}
- if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
- if (GraphicsLayer* maskLayer = graphicsLayer->maskLayer())
- paintGraphicsLayerRecursively(maskLayer);
- if (GraphicsLayer* contentsClippingMaskLayer =
- graphicsLayer->contentsClippingMaskLayer())
- paintGraphicsLayerRecursively(contentsClippingMaskLayer);
- }
+ if (GraphicsLayer* maskLayer = graphicsLayer->maskLayer())
+ paintGraphicsLayerRecursively(maskLayer);
+ if (GraphicsLayer* contentsClippingMaskLayer =
+ graphicsLayer->contentsClippingMaskLayer())
+ paintGraphicsLayerRecursively(contentsClippingMaskLayer);
for (auto& child : graphicsLayer->children())
paintGraphicsLayerRecursively(child);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698