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

Side by Side Diff: third_party/WebKit/Source/core/paint/LayoutObjectDrawingRecorder.h

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: Created 4 years, 2 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 #ifndef LayoutObjectDrawingRecorder_h 5 #ifndef LayoutObjectDrawingRecorder_h
6 #define LayoutObjectDrawingRecorder_h 6 #define LayoutObjectDrawingRecorder_h
7 7
8 #include "core/layout/LayoutObject.h" 8 #include "core/layout/LayoutObject.h"
9 #include "core/paint/PaintPhase.h" 9 #include "core/paint/PaintPhase.h"
10 #include "platform/geometry/LayoutPoint.h" 10 #include "platform/geometry/LayoutPoint.h"
(...skipping 26 matching lines...) Expand all
37 const LayoutObject& layoutObject, 37 const LayoutObject& layoutObject,
38 PaintPhase phase) { 38 PaintPhase phase) {
39 return useCachedDrawingIfPossible( 39 return useCachedDrawingIfPossible(
40 context, layoutObject, DisplayItem::paintPhaseToDrawingType(phase)); 40 context, layoutObject, DisplayItem::paintPhaseToDrawingType(phase));
41 } 41 }
42 42
43 LayoutObjectDrawingRecorder(GraphicsContext& context, 43 LayoutObjectDrawingRecorder(GraphicsContext& context,
44 const LayoutObject& layoutObject, 44 const LayoutObject& layoutObject,
45 DisplayItem::Type displayItemType, 45 DisplayItem::Type displayItemType,
46 const FloatRect& clip) { 46 const FloatRect& clip) {
47 // We may paint a delayed-invalidation object before it's actually invalidat ed. 47 // We may paint a delayed-invalidation object before it's actually
48 // invalidated.
48 if (layoutObject.fullPaintInvalidationReason() == 49 if (layoutObject.fullPaintInvalidationReason() ==
49 PaintInvalidationDelayedFull) 50 PaintInvalidationDelayedFull)
50 m_cacheSkipper.emplace(context); 51 m_cacheSkipper.emplace(context);
51 m_drawingRecorder.emplace(context, layoutObject, displayItemType, clip); 52 m_drawingRecorder.emplace(context, layoutObject, displayItemType, clip);
52 } 53 }
53 54
54 LayoutObjectDrawingRecorder(GraphicsContext& context, 55 LayoutObjectDrawingRecorder(GraphicsContext& context,
55 const LayoutObject& layoutObject, 56 const LayoutObject& layoutObject,
56 DisplayItem::Type displayItemType, 57 DisplayItem::Type displayItemType,
57 const LayoutRect& clip) 58 const LayoutRect& clip)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 } 94 }
94 95
95 private: 96 private:
96 Optional<DisplayItemCacheSkipper> m_cacheSkipper; 97 Optional<DisplayItemCacheSkipper> m_cacheSkipper;
97 Optional<DrawingRecorder> m_drawingRecorder; 98 Optional<DrawingRecorder> m_drawingRecorder;
98 }; 99 };
99 100
100 } // namespace blink 101 } // namespace blink
101 102
102 #endif // LayoutObjectDrawingRecorder_h 103 #endif // LayoutObjectDrawingRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698