| 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 3592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3603 { | 3603 { |
| 3604 { | 3604 { |
| 3605 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document().
lifecycle()); | 3605 DeprecatedScheduleStyleRecalcDuringLayout marker(renderer()->document().
lifecycle()); |
| 3606 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl
e recalc, which | 3606 // It's possible for scheduleSVGFilterLayerUpdateHack to schedule a styl
e recalc, which |
| 3607 // is a problem because this function can be called while performing lay
out. | 3607 // is a problem because this function can be called while performing lay
out. |
| 3608 // Presumably this represents an illegal data flow of layout or composit
ing | 3608 // Presumably this represents an illegal data flow of layout or composit
ing |
| 3609 // information into the style system. | 3609 // information into the style system. |
| 3610 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack(); | 3610 toElement(renderer()->node())->scheduleSVGFilterLayerUpdateHack(); |
| 3611 } | 3611 } |
| 3612 | 3612 |
| 3613 if (renderer()->view()) { | 3613 renderer()->setShouldDoFullPaintInvalidation(true); |
| 3614 if (renderer()->frameView()->isInPerformLayout()) | |
| 3615 renderer()->setShouldDoFullPaintInvalidation(true); | |
| 3616 else | |
| 3617 renderer()->paintInvalidationForWholeRenderer(); | |
| 3618 } | |
| 3619 } | 3614 } |
| 3620 | 3615 |
| 3621 void RenderLayer::addLayerHitTestRects(LayerHitTestRects& rects) const | 3616 void RenderLayer::addLayerHitTestRects(LayerHitTestRects& rects) const |
| 3622 { | 3617 { |
| 3623 computeSelfHitTestRects(rects); | 3618 computeSelfHitTestRects(rects); |
| 3624 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) | 3619 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) |
| 3625 child->addLayerHitTestRects(rects); | 3620 child->addLayerHitTestRects(rects); |
| 3626 } | 3621 } |
| 3627 | 3622 |
| 3628 void RenderLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const | 3623 void RenderLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3686 } | 3681 } |
| 3687 } | 3682 } |
| 3688 | 3683 |
| 3689 void showLayerTree(const blink::RenderObject* renderer) | 3684 void showLayerTree(const blink::RenderObject* renderer) |
| 3690 { | 3685 { |
| 3691 if (!renderer) | 3686 if (!renderer) |
| 3692 return; | 3687 return; |
| 3693 showLayerTree(renderer->enclosingLayer()); | 3688 showLayerTree(renderer->enclosingLayer()); |
| 3694 } | 3689 } |
| 3695 #endif | 3690 #endif |
| OLD | NEW |