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 3193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3204 LayoutRect rect = m_blockSelectionGapsBounds; | 3204 LayoutRect rect = m_blockSelectionGapsBounds; |
3205 if (renderer()->hasOverflowClip()) { | 3205 if (renderer()->hasOverflowClip()) { |
3206 RenderBox* box = renderBox(); | 3206 RenderBox* box = renderBox(); |
3207 rect.move(-box->scrolledContentOffset()); | 3207 rect.move(-box->scrolledContentOffset()); |
3208 if (!scrollableArea()->usesCompositedScrolling()) | 3208 if (!scrollableArea()->usesCompositedScrolling()) |
3209 rect.intersect(box->overflowClipRect(LayoutPoint())); | 3209 rect.intersect(box->overflowClipRect(LayoutPoint())); |
3210 } | 3210 } |
3211 if (renderer()->hasClip()) | 3211 if (renderer()->hasClip()) |
3212 rect.intersect(toRenderBox(renderer())->clipRect(LayoutPoint())); | 3212 rect.intersect(toRenderBox(renderer())->clipRect(LayoutPoint())); |
3213 if (!rect.isEmpty()) | 3213 if (!rect.isEmpty()) |
3214 renderer()->repaintRectangle(rect); | 3214 renderer()->invalidatePaintRectangle(rect); |
3215 } | 3215 } |
3216 | 3216 |
3217 bool RenderLayer::hasBlockSelectionGapBounds() const | 3217 bool RenderLayer::hasBlockSelectionGapBounds() const |
3218 { | 3218 { |
3219 return !m_blockSelectionGapsBounds.isEmpty(); | 3219 return !m_blockSelectionGapsBounds.isEmpty(); |
3220 } | 3220 } |
3221 | 3221 |
3222 bool RenderLayer::intersectsDamageRect(const LayoutRect& layerBounds, const Layo
utRect& damageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromR
oot) const | 3222 bool RenderLayer::intersectsDamageRect(const LayoutRect& layerBounds, const Layo
utRect& damageRect, const RenderLayer* rootLayer, const LayoutPoint* offsetFromR
oot) const |
3223 { | 3223 { |
3224 // Always examine the canvas and the root. | 3224 // Always examine the canvas and the root. |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3797 // is a problem because this function can be called while performing lay
out. | 3797 // is a problem because this function can be called while performing lay
out. |
3798 // Presumably this represents an illegal data flow of layout or composit
ing | 3798 // Presumably this represents an illegal data flow of layout or composit
ing |
3799 // information into the style system. | 3799 // information into the style system. |
3800 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack(); | 3800 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack(); |
3801 } | 3801 } |
3802 | 3802 |
3803 if (renderer()->view()) { | 3803 if (renderer()->view()) { |
3804 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && renderer()->f
rameView()->isInPerformLayout()) | 3804 if (RuntimeEnabledFeatures::repaintAfterLayoutEnabled() && renderer()->f
rameView()->isInPerformLayout()) |
3805 renderer()->setShouldDoFullPaintInvalidationAfterLayout(true); | 3805 renderer()->setShouldDoFullPaintInvalidationAfterLayout(true); |
3806 else | 3806 else |
3807 renderer()->repaint(); | 3807 renderer()->paintInvalidationForWholeRenderer(); |
3808 } | 3808 } |
3809 } | 3809 } |
3810 | 3810 |
3811 void RenderLayer::addLayerHitTestRects(LayerHitTestRects& rects) const | 3811 void RenderLayer::addLayerHitTestRects(LayerHitTestRects& rects) const |
3812 { | 3812 { |
3813 computeSelfHitTestRects(rects); | 3813 computeSelfHitTestRects(rects); |
3814 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) | 3814 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) |
3815 child->addLayerHitTestRects(rects); | 3815 child->addLayerHitTestRects(rects); |
3816 } | 3816 } |
3817 | 3817 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3865 } | 3865 } |
3866 } | 3866 } |
3867 | 3867 |
3868 void showLayerTree(const WebCore::RenderObject* renderer) | 3868 void showLayerTree(const WebCore::RenderObject* renderer) |
3869 { | 3869 { |
3870 if (!renderer) | 3870 if (!renderer) |
3871 return; | 3871 return; |
3872 showLayerTree(renderer->enclosingLayer()); | 3872 showLayerTree(renderer->enclosingLayer()); |
3873 } | 3873 } |
3874 #endif | 3874 #endif |
OLD | NEW |