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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp

Issue 2817663002: Rewrite references to "wtf/" to "platform/wtf/" in core/paint. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/paint/PaintLayerPainter.h" 5 #include "core/paint/PaintLayerPainter.h"
6 6
7 #include "core/frame/LocalFrame.h" 7 #include "core/frame/LocalFrame.h"
8 #include "core/layout/LayoutView.h" 8 #include "core/layout/LayoutView.h"
9 #include "core/paint/ClipPathClipper.h" 9 #include "core/paint/ClipPathClipper.h"
10 #include "core/paint/FilterPainter.h" 10 #include "core/paint/FilterPainter.h"
11 #include "core/paint/LayerClipRecorder.h" 11 #include "core/paint/LayerClipRecorder.h"
12 #include "core/paint/LayoutObjectDrawingRecorder.h" 12 #include "core/paint/LayoutObjectDrawingRecorder.h"
13 #include "core/paint/ObjectPaintProperties.h" 13 #include "core/paint/ObjectPaintProperties.h"
14 #include "core/paint/PaintInfo.h" 14 #include "core/paint/PaintInfo.h"
15 #include "core/paint/PaintLayer.h" 15 #include "core/paint/PaintLayer.h"
16 #include "core/paint/ScrollRecorder.h" 16 #include "core/paint/ScrollRecorder.h"
17 #include "core/paint/ScrollableAreaPainter.h" 17 #include "core/paint/ScrollableAreaPainter.h"
18 #include "core/paint/Transform3DRecorder.h" 18 #include "core/paint/Transform3DRecorder.h"
19 #include "platform/RuntimeEnabledFeatures.h" 19 #include "platform/RuntimeEnabledFeatures.h"
20 #include "platform/geometry/FloatPoint3D.h" 20 #include "platform/geometry/FloatPoint3D.h"
21 #include "platform/graphics/GraphicsLayer.h" 21 #include "platform/graphics/GraphicsLayer.h"
22 #include "platform/graphics/paint/CompositingRecorder.h" 22 #include "platform/graphics/paint/CompositingRecorder.h"
23 #include "platform/graphics/paint/DisplayItemCacheSkipper.h" 23 #include "platform/graphics/paint/DisplayItemCacheSkipper.h"
24 #include "platform/graphics/paint/PaintChunkProperties.h" 24 #include "platform/graphics/paint/PaintChunkProperties.h"
25 #include "platform/graphics/paint/ScopedPaintChunkProperties.h" 25 #include "platform/graphics/paint/ScopedPaintChunkProperties.h"
26 #include "platform/graphics/paint/SubsequenceRecorder.h" 26 #include "platform/graphics/paint/SubsequenceRecorder.h"
27 #include "platform/graphics/paint/Transform3DDisplayItem.h" 27 #include "platform/graphics/paint/Transform3DDisplayItem.h"
28 #include "wtf/Optional.h" 28 #include "platform/wtf/Optional.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 static inline bool ShouldSuppressPaintingLayer(const PaintLayer& layer) { 32 static inline bool ShouldSuppressPaintingLayer(const PaintLayer& layer) {
33 // Avoid painting descendants of the root layer when stylesheets haven't 33 // Avoid painting descendants of the root layer when stylesheets haven't
34 // loaded. This avoids some FOUC. It's ok not to draw, because later on, when 34 // loaded. This avoids some FOUC. It's ok not to draw, because later on, when
35 // all the stylesheets do load, Document::styleResolverMayHaveChanged() will 35 // all the stylesheets do load, Document::styleResolverMayHaveChanged() will
36 // invalidate all painted output via a call to 36 // invalidate all painted output via a call to
37 // LayoutView::invalidatePaintForViewAndCompositedLayers(). We also avoid 37 // LayoutView::invalidatePaintForViewAndCompositedLayers(). We also avoid
38 // caching subsequences in this mode; see shouldCreateSubsequence(). 38 // caching subsequences in this mode; see shouldCreateSubsequence().
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 context, layout_object, kPaintPhaseClippingMask)) 1228 context, layout_object, kPaintPhaseClippingMask))
1229 return; 1229 return;
1230 1230
1231 IntRect snapped_clip_rect = PixelSnappedIntRect(clip_rect.Rect()); 1231 IntRect snapped_clip_rect = PixelSnappedIntRect(clip_rect.Rect());
1232 LayoutObjectDrawingRecorder drawing_recorder( 1232 LayoutObjectDrawingRecorder drawing_recorder(
1233 context, layout_object, kPaintPhaseClippingMask, snapped_clip_rect); 1233 context, layout_object, kPaintPhaseClippingMask, snapped_clip_rect);
1234 context.FillRect(snapped_clip_rect, Color::kBlack); 1234 context.FillRect(snapped_clip_rect, Color::kBlack);
1235 } 1235 }
1236 1236
1237 } // namespace blink 1237 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698