OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 void RenderLayer::updateScrollableArea() | 1463 void RenderLayer::updateScrollableArea() |
1464 { | 1464 { |
1465 if (requiresScrollableArea()) | 1465 if (requiresScrollableArea()) |
1466 m_scrollableArea = adoptPtr(new RenderLayerScrollableArea(*this)); | 1466 m_scrollableArea = adoptPtr(new RenderLayerScrollableArea(*this)); |
1467 else | 1467 else |
1468 m_scrollableArea = nullptr; | 1468 m_scrollableArea = nullptr; |
1469 } | 1469 } |
1470 | 1470 |
1471 bool RenderLayer::hasOverflowControls() const | 1471 bool RenderLayer::hasOverflowControls() const |
1472 { | 1472 { |
1473 return m_scrollableArea && (m_scrollableArea->hasScrollbar() || m_scrollable
Area->hasScrollCorner() || renderer()->style()->resize() != RESIZE_NONE); | 1473 return m_scrollableArea && (m_scrollableArea->hasScrollbar() || m_scrollable
Area->scrollCorner() || renderer()->style()->resize() != RESIZE_NONE); |
1474 } | 1474 } |
1475 | 1475 |
1476 void RenderLayer::collectFragments(LayerFragments& fragments, const RenderLayer*
rootLayer, const LayoutRect& dirtyRect, | 1476 void RenderLayer::collectFragments(LayerFragments& fragments, const RenderLayer*
rootLayer, const LayoutRect& dirtyRect, |
1477 ClipRectsCacheSlot clipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverl
ayScrollbarSizeRelevancy, ShouldRespectOverflowClip respectOverflowClip, const L
ayoutPoint* offsetFromRoot, | 1477 ClipRectsCacheSlot clipRectsCacheSlot, OverlayScrollbarSizeRelevancy inOverl
ayScrollbarSizeRelevancy, ShouldRespectOverflowClip respectOverflowClip, const L
ayoutPoint* offsetFromRoot, |
1478 const LayoutSize& subPixelAccumulation, const LayoutRect* layerBoundingBox) | 1478 const LayoutSize& subPixelAccumulation, const LayoutRect* layerBoundingBox) |
1479 { | 1479 { |
1480 if (!enclosingPaginationLayer() || hasTransformRelatedProperty()) { | 1480 if (!enclosingPaginationLayer() || hasTransformRelatedProperty()) { |
1481 // For unpaginated layers, there is only one fragment. | 1481 // For unpaginated layers, there is only one fragment. |
1482 LayerFragment fragment; | 1482 LayerFragment fragment; |
1483 ClipRectsContext clipRectsContext(rootLayer, clipRectsCacheSlot, inOverl
ayScrollbarSizeRelevancy, subPixelAccumulation); | 1483 ClipRectsContext clipRectsContext(rootLayer, clipRectsCacheSlot, inOverl
ayScrollbarSizeRelevancy, subPixelAccumulation); |
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2856 } | 2856 } |
2857 } | 2857 } |
2858 | 2858 |
2859 void showLayerTree(const blink::RenderObject* renderer) | 2859 void showLayerTree(const blink::RenderObject* renderer) |
2860 { | 2860 { |
2861 if (!renderer) | 2861 if (!renderer) |
2862 return; | 2862 return; |
2863 showLayerTree(renderer->enclosingLayer()); | 2863 showLayerTree(renderer->enclosingLayer()); |
2864 } | 2864 } |
2865 #endif | 2865 #endif |
OLD | NEW |