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

Side by Side Diff: third_party/WebKit/Source/core/paint/BlockPainter.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/BlockPainter.h" 5 #include "core/paint/BlockPainter.h"
6 6
7 #include "core/editing/DragCaret.h" 7 #include "core/editing/DragCaret.h"
8 #include "core/editing/FrameSelection.h" 8 #include "core/editing/FrameSelection.h"
9 #include "core/layout/LayoutFlexibleBox.h" 9 #include "core/layout/LayoutFlexibleBox.h"
10 #include "core/layout/LayoutInline.h" 10 #include "core/layout/LayoutInline.h"
11 #include "core/layout/api/LineLayoutAPIShim.h" 11 #include "core/layout/api/LineLayoutAPIShim.h"
12 #include "core/layout/api/LineLayoutBox.h" 12 #include "core/layout/api/LineLayoutBox.h"
13 #include "core/page/Page.h" 13 #include "core/page/Page.h"
14 #include "core/paint/BlockFlowPainter.h" 14 #include "core/paint/BlockFlowPainter.h"
15 #include "core/paint/BoxClipper.h" 15 #include "core/paint/BoxClipper.h"
16 #include "core/paint/BoxPainter.h" 16 #include "core/paint/BoxPainter.h"
17 #include "core/paint/LayoutObjectDrawingRecorder.h" 17 #include "core/paint/LayoutObjectDrawingRecorder.h"
18 #include "core/paint/ObjectPaintProperties.h" 18 #include "core/paint/ObjectPaintProperties.h"
19 #include "core/paint/ObjectPainter.h" 19 #include "core/paint/ObjectPainter.h"
20 #include "core/paint/PaintInfo.h" 20 #include "core/paint/PaintInfo.h"
21 #include "core/paint/PaintLayer.h" 21 #include "core/paint/PaintLayer.h"
22 #include "core/paint/ScrollRecorder.h" 22 #include "core/paint/ScrollRecorder.h"
23 #include "core/paint/ScrollableAreaPainter.h" 23 #include "core/paint/ScrollableAreaPainter.h"
24 #include "platform/graphics/GraphicsLayer.h" 24 #include "platform/graphics/GraphicsLayer.h"
25 #include "platform/graphics/paint/ClipRecorder.h" 25 #include "platform/graphics/paint/ClipRecorder.h"
26 #include "wtf/Optional.h" 26 #include "platform/wtf/Optional.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 DISABLE_CFI_PERF 30 DISABLE_CFI_PERF
31 void BlockPainter::Paint(const PaintInfo& paint_info, 31 void BlockPainter::Paint(const PaintInfo& paint_info,
32 const LayoutPoint& paint_offset) { 32 const LayoutPoint& paint_offset) {
33 ObjectPainter(layout_block_).CheckPaintOffset(paint_info, paint_offset); 33 ObjectPainter(layout_block_).CheckPaintOffset(paint_info, paint_offset);
34 LayoutPoint adjusted_paint_offset = paint_offset + layout_block_.Location(); 34 LayoutPoint adjusted_paint_offset = paint_offset + layout_block_.Location();
35 if (!IntersectsPaintRect(paint_info, adjusted_paint_offset)) 35 if (!IntersectsPaintRect(paint_info, adjusted_paint_offset))
36 return; 36 return;
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 } 303 }
304 304
305 void BlockPainter::PaintContents(const PaintInfo& paint_info, 305 void BlockPainter::PaintContents(const PaintInfo& paint_info,
306 const LayoutPoint& paint_offset) { 306 const LayoutPoint& paint_offset) {
307 DCHECK(!layout_block_.ChildrenInline()); 307 DCHECK(!layout_block_.ChildrenInline());
308 PaintInfo paint_info_for_descendants = paint_info.ForDescendants(); 308 PaintInfo paint_info_for_descendants = paint_info.ForDescendants();
309 layout_block_.PaintChildren(paint_info_for_descendants, paint_offset); 309 layout_block_.PaintChildren(paint_info_for_descendants, paint_offset);
310 } 310 }
311 311
312 } // namespace blink 312 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BlockPainter.h ('k') | third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698