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

Side by Side Diff: Source/core/paint/RenderDrawingRecorder.h

Issue 963873002: [Slimming Paint] Adjust the paint rect for paintOffset when painting column rules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
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 RenderDrawingRecorder_h 5 #ifndef RenderDrawingRecorder_h
6 #define RenderDrawingRecorder_h 6 #define RenderDrawingRecorder_h
7 7
8 #include "core/layout/PaintPhase.h" 8 #include "core/layout/PaintPhase.h"
9 #include "platform/geometry/FloatRect.h" 9 #include "platform/geometry/FloatRect.h"
10 #include "platform/graphics/paint/DisplayItem.h" 10 #include "platform/graphics/paint/DisplayItem.h"
11 #include "platform/graphics/paint/DrawingRecorder.h" 11 #include "platform/graphics/paint/DrawingRecorder.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class GraphicsContext; 15 class GraphicsContext;
16 class LayoutObject; 16 class LayoutObject;
17 17
18 class RenderDrawingRecorder { 18 class RenderDrawingRecorder {
19 public: 19 public:
20 RenderDrawingRecorder(GraphicsContext*, const LayoutObject&, PaintPhase, con st FloatRect&); 20 RenderDrawingRecorder(GraphicsContext*, const LayoutObject&, PaintPhase, con st FloatRect&);
21 RenderDrawingRecorder(GraphicsContext*, const LayoutObject&, DisplayItem::Ty pe, const FloatRect&); 21 RenderDrawingRecorder(GraphicsContext*, const LayoutObject&, DisplayItem::Ty pe, const FloatRect&);
22 // paintRect will be pixel-snapped.
23 RenderDrawingRecorder(GraphicsContext*, const LayoutObject&, DisplayItem::Ty pe, const LayoutRect& paintRect);
22 24
23 ~RenderDrawingRecorder(); 25 ~RenderDrawingRecorder();
24 26
25 bool canUseCachedDrawing() const { return m_drawingRecorder.canUseCachedDraw ing(); } 27 bool canUseCachedDrawing() const { return m_drawingRecorder.canUseCachedDraw ing(); }
26 28
27 private: 29 private:
28 DrawingRecorder m_drawingRecorder; 30 DrawingRecorder m_drawingRecorder;
29 #ifndef NDEBUG 31 #ifndef NDEBUG
30 const LayoutObject& m_renderer; 32 const LayoutObject& m_renderer;
31 #endif 33 #endif
32 }; 34 };
33 35
34 } // namespace blink 36 } // namespace blink
35 37
36 #endif // RenderDrawingRecorder_h 38 #endif // RenderDrawingRecorder_h
OLDNEW
« no previous file with comments | « Source/core/paint/MultiColumnSetPainter.cpp ('k') | Source/core/paint/RenderDrawingRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698