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 3721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3732 iter->value.append(physicalBoundingBox(parentLayer)); | 3732 iter->value.append(physicalBoundingBox(parentLayer)); |
3733 } | 3733 } |
3734 } | 3734 } |
3735 } else { | 3735 } else { |
3736 rect.append(logicalBoundingBox()); | 3736 rect.append(logicalBoundingBox()); |
3737 rects.set(this, rect); | 3737 rects.set(this, rect); |
3738 } | 3738 } |
3739 } | 3739 } |
3740 } | 3740 } |
3741 | 3741 |
3742 void RenderLayer::setShouldDoFullPaintInvalidationIncludingNonCompositingDescend ants() | |
3743 { | |
3744 renderer()->setShouldDoFullPaintInvalidation(true); | |
3745 | |
3746 // Disable for reading compositingState() below. | |
3747 DisableCompositingQueryAsserts disabler; | |
3748 | |
3749 for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) { | |
3750 if (child->compositingState() != PaintsIntoOwnBacking && child->composit ingState() != PaintsIntoGroupedBacking) | |
leviw_travelin_and_unemployed
2014/08/07 18:11:29
Nit: !child->isPaintInvalidationContainer()
Xianzhu
2014/08/07 18:32:40
Done.
| |
3751 child->setShouldDoFullPaintInvalidationIncludingNonCompositingDescen dants(); | |
3752 } | |
3753 } | |
3754 | |
3742 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() | 3755 DisableCompositingQueryAsserts::DisableCompositingQueryAsserts() |
3743 : m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { } | 3756 : m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { } |
3744 | 3757 |
3745 COMPILE_ASSERT(1 << RenderLayer::ViewportConstrainedNotCompositedReasonBits >= R enderLayer::NumNotCompositedReasons, too_many_viewport_constrained_not_compositi ng_reasons); | 3758 COMPILE_ASSERT(1 << RenderLayer::ViewportConstrainedNotCompositedReasonBits >= R enderLayer::NumNotCompositedReasons, too_many_viewport_constrained_not_compositi ng_reasons); |
3746 | 3759 |
3747 } // namespace blink | 3760 } // namespace blink |
3748 | 3761 |
3749 #ifndef NDEBUG | 3762 #ifndef NDEBUG |
3750 void showLayerTree(const blink::RenderLayer* layer) | 3763 void showLayerTree(const blink::RenderLayer* layer) |
3751 { | 3764 { |
3752 if (!layer) | 3765 if (!layer) |
3753 return; | 3766 return; |
3754 | 3767 |
3755 if (blink::LocalFrame* frame = layer->renderer()->frame()) { | 3768 if (blink::LocalFrame* frame = layer->renderer()->frame()) { |
3756 WTF::String output = externalRepresentation(frame, blink::RenderAsTextSh owAllLayers | blink::RenderAsTextShowLayerNesting | blink::RenderAsTextShowCompo sitedLayers | blink::RenderAsTextShowAddresses | blink::RenderAsTextShowIDAndCla ss | blink::RenderAsTextDontUpdateLayout | blink::RenderAsTextShowLayoutState); | 3769 WTF::String output = externalRepresentation(frame, blink::RenderAsTextSh owAllLayers | blink::RenderAsTextShowLayerNesting | blink::RenderAsTextShowCompo sitedLayers | blink::RenderAsTextShowAddresses | blink::RenderAsTextShowIDAndCla ss | blink::RenderAsTextDontUpdateLayout | blink::RenderAsTextShowLayoutState); |
3757 fprintf(stderr, "%s\n", output.utf8().data()); | 3770 fprintf(stderr, "%s\n", output.utf8().data()); |
3758 } | 3771 } |
3759 } | 3772 } |
3760 | 3773 |
3761 void showLayerTree(const blink::RenderObject* renderer) | 3774 void showLayerTree(const blink::RenderObject* renderer) |
3762 { | 3775 { |
3763 if (!renderer) | 3776 if (!renderer) |
3764 return; | 3777 return; |
3765 showLayerTree(renderer->enclosingLayer()); | 3778 showLayerTree(renderer->enclosingLayer()); |
3766 } | 3779 } |
3767 #endif | 3780 #endif |
OLD | NEW |