Index: third_party/WebKit/Source/core/paint/PaintInfo.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintInfo.cpp b/third_party/WebKit/Source/core/paint/PaintInfo.cpp |
index b930437394c1838896126960ea21f7e1f2361083..41a000812942b11cbdc2874fbc6a06e6672260a1 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintInfo.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintInfo.cpp |
@@ -24,46 +24,9 @@ bool PaintInfo::shouldPaintWithinRoot(const LayoutObject* layoutObject) const |
return !paintingRoot || paintingRoot == layoutObject; |
} |
-CullRect::CullRect(const CullRect& cullRect, const IntPoint& offset) |
-{ |
- m_rect = cullRect.m_rect; |
- m_rect.moveBy(offset); |
-} |
- |
-bool CullRect::intersectsCullRect(const IntRect& boundingBox) const |
-{ |
- return boundingBox.intersects(m_rect); |
-} |
- |
-bool CullRect::intersectsCullRect(const AffineTransform& transform, const FloatRect& boundingBox) const |
-{ |
- return transform.mapRect(boundingBox).intersects(m_rect); |
-} |
- |
-bool CullRect::intersectsCullRect(const LayoutRect& rectArg) const |
-{ |
- return m_rect.intersects(enclosingIntRect(rectArg)); |
-} |
- |
-bool CullRect::intersectsHorizontalRange(LayoutUnit lo, LayoutUnit hi) const |
-{ |
- return !(lo >= m_rect.maxX() || hi <= m_rect.x()); |
-} |
- |
-bool CullRect::intersectsVerticalRange(LayoutUnit lo, LayoutUnit hi) const |
-{ |
- return !(lo >= m_rect.maxY() || hi <= m_rect.y()); |
-} |
- |
void PaintInfo::updateCullRect(const AffineTransform& localToParentTransform) |
{ |
m_cullRect.updateCullRect(localToParentTransform); |
} |
-void CullRect::updateCullRect(const AffineTransform& localToParentTransform) |
-{ |
- if (m_rect != LayoutRect::infiniteIntRect()) |
- m_rect = localToParentTransform.inverse().mapRect(m_rect); |
-} |
- |
} // namespace blink |