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 * Copyright (C) 2014 Google Inc. All rights reserved. | 3 * Copyright (C) 2014 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "platform/geometry/IntRect.h" | 30 #include "platform/geometry/IntRect.h" |
31 #include "platform/graphics/CompositingReasons.h" | 31 #include "platform/graphics/CompositingReasons.h" |
32 #include "wtf/Vector.h" | 32 #include "wtf/Vector.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 class CompositingReasonFinder; | 36 class CompositingReasonFinder; |
37 class RenderLayer; | 37 class RenderLayer; |
38 class RenderObject; | 38 class RenderObject; |
39 class RenderPart; | |
40 class RenderView; | 39 class RenderView; |
41 | 40 |
42 class CompositingRequirementsUpdater { | 41 class CompositingRequirementsUpdater { |
43 public: | 42 public: |
44 CompositingRequirementsUpdater(RenderView&, CompositingReasonFinder&); | 43 CompositingRequirementsUpdater(RenderView&, CompositingReasonFinder&); |
45 ~CompositingRequirementsUpdater(); | 44 ~CompositingRequirementsUpdater(); |
46 | 45 |
47 // Recurse through the layers in z-index and overflow order (which is equiv
alent to painting order) | 46 // Recurse through the layers in z-index and overflow order (which is equiv
alent to painting order) |
48 // For the z-order children of a compositing layer: | 47 // For the z-order children of a compositing layer: |
49 // If a child layers has a compositing layer, then all subsequent layer
s must | 48 // If a child layers has a compositing layer, then all subsequent layer
s must |
(...skipping 12 matching lines...) Expand all Loading... |
62 void updateRecursive(RenderLayer* ancestorLayer, RenderLayer* currentLayer,
OverlapMap&, RecursionData&, bool& descendantHas3DTransform, Vector<RenderLayer*
>& unclippedDescendants, IntRect& absoluteDecendantBoundingBox); | 61 void updateRecursive(RenderLayer* ancestorLayer, RenderLayer* currentLayer,
OverlapMap&, RecursionData&, bool& descendantHas3DTransform, Vector<RenderLayer*
>& unclippedDescendants, IntRect& absoluteDecendantBoundingBox); |
63 bool isRunningAcceleratedTransformAnimation(RenderObject*) const; | 62 bool isRunningAcceleratedTransformAnimation(RenderObject*) const; |
64 | 63 |
65 RenderView& m_renderView; | 64 RenderView& m_renderView; |
66 CompositingReasonFinder& m_compositingReasonFinder; | 65 CompositingReasonFinder& m_compositingReasonFinder; |
67 }; | 66 }; |
68 | 67 |
69 } // namespace WebCore | 68 } // namespace WebCore |
70 | 69 |
71 #endif // CompositingRequirementsUpdater_h | 70 #endif // CompositingRequirementsUpdater_h |
OLD | NEW |