| 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" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 CullRect(const CullRect&, const IntPoint& offset); | 30 CullRect(const CullRect&, const IntPoint& offset); |
| 31 CullRect(const CullRect&, const IntSize& offset); | 31 CullRect(const CullRect&, const IntSize& offset); |
| 32 | 32 |
| 33 bool intersectsCullRect(const AffineTransform&, const FloatRect& boundingBox
) const; | 33 bool intersectsCullRect(const AffineTransform&, const FloatRect& boundingBox
) const; |
| 34 void updateCullRect(const AffineTransform& localToParentTransform); | 34 void updateCullRect(const AffineTransform& localToParentTransform); |
| 35 bool intersectsCullRect(const IntRect&) const; | 35 bool intersectsCullRect(const IntRect&) const; |
| 36 bool intersectsCullRect(const LayoutRect&) const; | 36 bool intersectsCullRect(const LayoutRect&) const; |
| 37 bool intersectsHorizontalRange(LayoutUnit lo, LayoutUnit hi) const; | 37 bool intersectsHorizontalRange(LayoutUnit lo, LayoutUnit hi) const; |
| 38 bool intersectsVerticalRange(LayoutUnit lo, LayoutUnit hi) const; | 38 bool intersectsVerticalRange(LayoutUnit lo, LayoutUnit hi) const; |
| 39 | 39 |
| 40 IntRect m_rect; |
| 40 private: | 41 private: |
| 41 IntRect m_rect; | |
| 42 | 42 |
| 43 // TODO(chrishtr): temporary while we implement CullRect everywhere. | 43 // TODO(chrishtr): temporary while we implement CullRect everywhere. |
| 44 friend class FramePainter; | 44 friend class FramePainter; |
| 45 friend class GridPainter; | 45 friend class GridPainter; |
| 46 friend class SVGInlineTextBoxPainter; | 46 friend class SVGInlineTextBoxPainter; |
| 47 friend class ReplicaPainter; | 47 friend class ReplicaPainter; |
| 48 friend class SVGPaintContext; | 48 friend class SVGPaintContext; |
| 49 friend class SVGRootInlineBoxPainter; | 49 friend class SVGRootInlineBoxPainter; |
| 50 friend class SVGShapePainter; | 50 friend class SVGShapePainter; |
| 51 friend class TableSectionPainter; | 51 friend class TableSectionPainter; |
| 52 friend class ThemePainterMac; | 52 friend class ThemePainterMac; |
| 53 friend class WebPluginContainerImpl; | 53 friend class WebPluginContainerImpl; |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| 57 | 57 |
| 58 #endif // CullRect_h | 58 #endif // CullRect_h |
| OLD | NEW |