OLD | NEW |
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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 } | 673 } |
674 | 674 |
675 void RenderLayerCompositor::repaintCompositedLayers() | 675 void RenderLayerCompositor::repaintCompositedLayers() |
676 { | 676 { |
677 recursiveRepaintLayer(rootRenderLayer()); | 677 recursiveRepaintLayer(rootRenderLayer()); |
678 } | 678 } |
679 | 679 |
680 void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer) | 680 void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer) |
681 { | 681 { |
682 // FIXME: This method does not work correctly with transforms. | 682 // FIXME: This method does not work correctly with transforms. |
683 if (layer->compositingState() == PaintsIntoOwnBacking) | 683 if (layer->compositingState() == PaintsIntoOwnBacking) { |
684 layer->repainter().setBackingNeedsRepaint(); | 684 layer->compositedLayerMapping()->setContentsNeedDisplay(); |
| 685 // This function is called only when it is desired to repaint the entire
compositing graphics layer tree. |
| 686 // This includes squashing. |
| 687 layer->compositedLayerMapping()->setSquashingContentsNeedDisplay(); |
| 688 } |
685 | 689 |
686 layer->stackingNode()->updateLayerListsIfNeeded(); | 690 layer->stackingNode()->updateLayerListsIfNeeded(); |
687 | 691 |
688 #if ASSERT_ENABLED | 692 #if ASSERT_ENABLED |
689 LayerListMutationDetector mutationChecker(layer->stackingNode()); | 693 LayerListMutationDetector mutationChecker(layer->stackingNode()); |
690 #endif | 694 #endif |
691 | 695 |
692 unsigned childrenToVisit = NormalFlowChildren; | 696 unsigned childrenToVisit = NormalFlowChildren; |
693 if (layer->hasCompositingDescendant()) | 697 if (layer->hasCompositingDescendant()) |
694 childrenToVisit |= PositiveZOrderChildren | NegativeZOrderChildren; | 698 childrenToVisit |= PositiveZOrderChildren | NegativeZOrderChildren; |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 } else if (graphicsLayer == m_scrollLayer.get()) { | 1250 } else if (graphicsLayer == m_scrollLayer.get()) { |
1247 name = "LocalFrame Scrolling Layer"; | 1251 name = "LocalFrame Scrolling Layer"; |
1248 } else { | 1252 } else { |
1249 ASSERT_NOT_REACHED(); | 1253 ASSERT_NOT_REACHED(); |
1250 } | 1254 } |
1251 | 1255 |
1252 return name; | 1256 return name; |
1253 } | 1257 } |
1254 | 1258 |
1255 } // namespace WebCore | 1259 } // namespace WebCore |
OLD | NEW |