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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/CullRect.h

Issue 2786463004: Paint backgrounds of a table section/row in one display item (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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CullRect_h 5 #ifndef CullRect_h
6 #define CullRect_h 6 #define CullRect_h
7 7
8 #include "platform/geometry/IntRect.h" 8 #include "platform/geometry/IntRect.h"
9 #include "platform/transforms/AffineTransform.h" 9 #include "platform/transforms/AffineTransform.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 friend bool operator==(const CullRect&, const CullRect&); 45 friend bool operator==(const CullRect&, const CullRect&);
46 46
47 // TODO(chrishtr): temporary while we implement CullRect everywhere. 47 // TODO(chrishtr): temporary while we implement CullRect everywhere.
48 friend class FramePainter; 48 friend class FramePainter;
49 friend class GridPainter; 49 friend class GridPainter;
50 friend class SVGInlineTextBoxPainter; 50 friend class SVGInlineTextBoxPainter;
51 friend class SVGPaintContext; 51 friend class SVGPaintContext;
52 friend class SVGRootInlineBoxPainter; 52 friend class SVGRootInlineBoxPainter;
53 friend class SVGShapePainter; 53 friend class SVGShapePainter;
54 friend class TableRowPainter;
54 friend class TableSectionPainter; 55 friend class TableSectionPainter;
55 friend class ThemePainterMac; 56 friend class ThemePainterMac;
56 friend class WebPluginContainerImpl; 57 friend class WebPluginContainerImpl;
57 }; 58 };
58 59
59 inline bool operator==(const CullRect& a, const CullRect& b) { 60 inline bool operator==(const CullRect& a, const CullRect& b) {
60 return a.m_rect == b.m_rect; 61 return a.m_rect == b.m_rect;
61 } 62 }
62 inline bool operator!=(const CullRect& a, const CullRect& b) { 63 inline bool operator!=(const CullRect& a, const CullRect& b) {
63 return !(a == b); 64 return !(a == b);
64 } 65 }
65 66
66 } // namespace blink 67 } // namespace blink
67 68
68 #endif // CullRect_h 69 #endif // CullRect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698