Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 331923002: RenderLayerCompositor::recursiveRepaintLayer needs to updateLayerListsIfNeeded (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 { 665 {
666 recursiveRepaintLayer(rootRenderLayer()); 666 recursiveRepaintLayer(rootRenderLayer());
667 } 667 }
668 668
669 void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer) 669 void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer)
670 { 670 {
671 // FIXME: This method does not work correctly with transforms. 671 // FIXME: This method does not work correctly with transforms.
672 if (layer->compositingState() == PaintsIntoOwnBacking) 672 if (layer->compositingState() == PaintsIntoOwnBacking)
673 layer->repainter().setBackingNeedsRepaint(); 673 layer->repainter().setBackingNeedsRepaint();
674 674
675 layer->stackingNode()->updateLayerListsIfNeeded();
676
675 #if ASSERT_ENABLED 677 #if ASSERT_ENABLED
676 LayerListMutationDetector mutationChecker(layer->stackingNode()); 678 LayerListMutationDetector mutationChecker(layer->stackingNode());
677 #endif 679 #endif
678 680
679 unsigned childrenToVisit = NormalFlowChildren; 681 unsigned childrenToVisit = NormalFlowChildren;
680 if (layer->hasCompositingDescendant()) 682 if (layer->hasCompositingDescendant())
681 childrenToVisit |= PositiveZOrderChildren | NegativeZOrderChildren; 683 childrenToVisit |= PositiveZOrderChildren | NegativeZOrderChildren;
682 RenderLayerStackingNodeIterator iterator(*layer->stackingNode(), childrenToV isit); 684 RenderLayerStackingNodeIterator iterator(*layer->stackingNode(), childrenToV isit);
683 while (RenderLayerStackingNode* curNode = iterator.next()) 685 while (RenderLayerStackingNode* curNode = iterator.next())
684 recursiveRepaintLayer(curNode->layer()); 686 recursiveRepaintLayer(curNode->layer());
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 } else if (graphicsLayer == m_scrollLayer.get()) { 1235 } else if (graphicsLayer == m_scrollLayer.get()) {
1234 name = "LocalFrame Scrolling Layer"; 1236 name = "LocalFrame Scrolling Layer";
1235 } else { 1237 } else {
1236 ASSERT_NOT_REACHED(); 1238 ASSERT_NOT_REACHED();
1237 } 1239 }
1238 1240
1239 return name; 1241 return name;
1240 } 1242 }
1241 1243
1242 } // namespace WebCore 1244 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698