OLD | NEW |
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" |
11 #include "wtf/HashMap.h" | 11 #include "wtf/HashMap.h" |
12 #include "wtf/ListHashSet.h" | 12 #include "wtf/ListHashSet.h" |
13 | 13 |
14 #include <limits> | 14 #include <limits> |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class FloatRect; | 18 class FloatRect; |
19 class LayoutBoxModelObject; | 19 class LayoutBoxModelObject; |
20 class LayoutInline; | 20 class LayoutInline; |
21 class LayoutObject; | 21 class LayoutObject; |
22 class LayoutRect; | 22 class LayoutRect; |
23 class LayoutUnit; | 23 class LayoutUnit; |
24 class PaintInvalidationState; | 24 class PaintInvalidationState; |
25 | 25 |
26 class PLATFORM_EXPORT CullRect { | 26 class PLATFORM_EXPORT CullRect { |
| 27 DISALLOW_NEW(); |
27 public: | 28 public: |
28 explicit CullRect(const IntRect& rect) : m_rect(rect) { } | 29 explicit CullRect(const IntRect& rect) : m_rect(rect) { } |
29 CullRect(const CullRect&, const IntPoint& offset); | 30 CullRect(const CullRect&, const IntPoint& offset); |
30 CullRect(const CullRect&, const IntSize& offset); | 31 CullRect(const CullRect&, const IntSize& offset); |
31 | 32 |
32 bool intersectsCullRect(const AffineTransform&, const FloatRect& boundingBox
) const; | 33 bool intersectsCullRect(const AffineTransform&, const FloatRect& boundingBox
) const; |
33 void updateCullRect(const AffineTransform& localToParentTransform); | 34 void updateCullRect(const AffineTransform& localToParentTransform); |
34 bool intersectsCullRect(const IntRect&) const; | 35 bool intersectsCullRect(const IntRect&) const; |
35 bool intersectsCullRect(const LayoutRect&) const; | 36 bool intersectsCullRect(const LayoutRect&) const; |
36 bool intersectsHorizontalRange(LayoutUnit lo, LayoutUnit hi) const; | 37 bool intersectsHorizontalRange(LayoutUnit lo, LayoutUnit hi) const; |
(...skipping 12 matching lines...) Expand all Loading... |
49 friend class SVGRootInlineBoxPainter; | 50 friend class SVGRootInlineBoxPainter; |
50 friend class SVGShapePainter; | 51 friend class SVGShapePainter; |
51 friend class TableSectionPainter; | 52 friend class TableSectionPainter; |
52 friend class ThemePainterMac; | 53 friend class ThemePainterMac; |
53 friend class WebPluginContainerImpl; | 54 friend class WebPluginContainerImpl; |
54 }; | 55 }; |
55 | 56 |
56 } // namespace blink | 57 } // namespace blink |
57 | 58 |
58 #endif // CullRect_h | 59 #endif // CullRect_h |
OLD | NEW |