| 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; | |
| 20 class LayoutInline; | |
| 21 class LayoutObject; | |
| 22 class LayoutRect; | 19 class LayoutRect; |
| 23 class LayoutUnit; | 20 class LayoutUnit; |
| 24 class PaintInvalidationState; | |
| 25 | 21 |
| 26 class PLATFORM_EXPORT CullRect { | 22 class PLATFORM_EXPORT CullRect { |
| 27 DISALLOW_NEW(); | 23 DISALLOW_NEW(); |
| 28 | 24 |
| 29 public: | 25 public: |
| 30 explicit CullRect(const IntRect& rect) : m_rect(rect) {} | 26 explicit CullRect(const IntRect& rect) : m_rect(rect) {} |
| 31 CullRect(const CullRect&, const IntPoint& offset); | 27 CullRect(const CullRect&, const IntPoint& offset); |
| 32 CullRect(const CullRect&, const IntSize& offset); | 28 CullRect(const CullRect&, const IntSize& offset); |
| 33 | 29 |
| 34 bool intersectsCullRect(const AffineTransform&, | 30 bool intersectsCullRect(const AffineTransform&, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 50 friend class SVGRootInlineBoxPainter; | 46 friend class SVGRootInlineBoxPainter; |
| 51 friend class SVGShapePainter; | 47 friend class SVGShapePainter; |
| 52 friend class TableSectionPainter; | 48 friend class TableSectionPainter; |
| 53 friend class ThemePainterMac; | 49 friend class ThemePainterMac; |
| 54 friend class WebPluginContainerImpl; | 50 friend class WebPluginContainerImpl; |
| 55 }; | 51 }; |
| 56 | 52 |
| 57 } // namespace blink | 53 } // namespace blink |
| 58 | 54 |
| 59 #endif // CullRect_h | 55 #endif // CullRect_h |
| OLD | NEW |