OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * | 10 * |
(...skipping 15 matching lines...) Expand all Loading... |
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "web/painting/ContinuousPainter.h" | 30 #include "web/painting/ContinuousPainter.h" |
31 | 31 |
32 #include "platform/TraceEvent.h" | 32 #include "platform/TraceEvent.h" |
33 #include "platform/graphics/GraphicsLayer.h" | 33 #include "platform/graphics/GraphicsLayer.h" |
34 #include "web/PageOverlayList.h" | 34 #include "web/PageOverlayList.h" |
35 | 35 |
36 using namespace WebCore; | 36 using namespace blink; |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 void ContinuousPainter::setNeedsDisplayRecursive(GraphicsLayer* layer, PageOverl
ayList* pageOverlays) | 40 void ContinuousPainter::setNeedsDisplayRecursive(GraphicsLayer* layer, PageOverl
ayList* pageOverlays) |
41 { | 41 { |
42 if (!layer) | 42 if (!layer) |
43 return; | 43 return; |
44 | 44 |
45 if (pageOverlays && pageOverlays->findGraphicsLayer(layer) != WTF::kNotFound
) | 45 if (pageOverlays && pageOverlays->findGraphicsLayer(layer) != WTF::kNotFound
) |
46 return; | 46 return; |
47 | 47 |
48 TRACE_EVENT0("blink", "ContinuousPainter::setNeedsDisplayRecursive"); | 48 TRACE_EVENT0("blink", "ContinuousPainter::setNeedsDisplayRecursive"); |
49 layer->setNeedsDisplay(); | 49 layer->setNeedsDisplay(); |
50 | 50 |
51 setNeedsDisplayRecursive(layer->maskLayer(), pageOverlays); | 51 setNeedsDisplayRecursive(layer->maskLayer(), pageOverlays); |
52 setNeedsDisplayRecursive(layer->contentsClippingMaskLayer(), pageOverlays); | 52 setNeedsDisplayRecursive(layer->contentsClippingMaskLayer(), pageOverlays); |
53 setNeedsDisplayRecursive(layer->replicaLayer(), pageOverlays); | 53 setNeedsDisplayRecursive(layer->replicaLayer(), pageOverlays); |
54 | 54 |
55 const Vector<GraphicsLayer*>& children = layer->children(); | 55 const Vector<GraphicsLayer*>& children = layer->children(); |
56 Vector<GraphicsLayer*>::const_iterator it; | 56 Vector<GraphicsLayer*>::const_iterator it; |
57 for (it = children.begin(); it != children.end(); ++it) | 57 for (it = children.begin(); it != children.end(); ++it) |
58 setNeedsDisplayRecursive(*it, pageOverlays); | 58 setNeedsDisplayRecursive(*it, pageOverlays); |
59 } | 59 } |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
OLD | NEW |