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 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 20 matching lines...) Expand all Loading... |
31 #ifndef DeprecatedPaintLayerStackingNodeIterator_h | 31 #ifndef DeprecatedPaintLayerStackingNodeIterator_h |
32 #define DeprecatedPaintLayerStackingNodeIterator_h | 32 #define DeprecatedPaintLayerStackingNodeIterator_h |
33 | 33 |
34 #include "wtf/Allocator.h" | 34 #include "wtf/Allocator.h" |
35 #include "wtf/Noncopyable.h" | 35 #include "wtf/Noncopyable.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 enum ChildrenIteration { | 39 enum ChildrenIteration { |
40 NegativeZOrderChildren = 1, | 40 NegativeZOrderChildren = 1, |
41 // Normal flow children are not mandated by CSS 2.1 but are an artifact of | |
42 // our implementation: we allocate DeprecatedPaintLayers for elements that | |
43 // are not treated as stacking contexts and thus we need to walk them | |
44 // during painting and hit-testing. | |
45 NormalFlowChildren = 1 << 1, | 41 NormalFlowChildren = 1 << 1, |
46 PositiveZOrderChildren = 1 << 2, | 42 PositiveZOrderChildren = 1 << 2, |
47 AllChildren = NegativeZOrderChildren | NormalFlowChildren | PositiveZOrderCh
ildren | 43 AllChildren = NegativeZOrderChildren | NormalFlowChildren | PositiveZOrderCh
ildren |
48 }; | 44 }; |
49 | 45 |
50 class DeprecatedPaintLayerStackingNode; | 46 class DeprecatedPaintLayerStackingNode; |
51 class DeprecatedPaintLayer; | 47 class DeprecatedPaintLayer; |
52 | 48 |
53 // This iterator walks the DeprecatedPaintLayerStackingNode lists in the followi
ng order: | 49 // This iterator walks the DeprecatedPaintLayerStackingNode lists in the followi
ng order: |
54 // NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren. | 50 // NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 83 |
88 const DeprecatedPaintLayerStackingNode& m_root; | 84 const DeprecatedPaintLayerStackingNode& m_root; |
89 unsigned m_remainingChildren; | 85 unsigned m_remainingChildren; |
90 int m_index; | 86 int m_index; |
91 DeprecatedPaintLayer* m_currentNormalFlowChild; | 87 DeprecatedPaintLayer* m_currentNormalFlowChild; |
92 }; | 88 }; |
93 | 89 |
94 } // namespace blink | 90 } // namespace blink |
95 | 91 |
96 #endif // DeprecatedPaintLayerStackingNodeIterator_h | 92 #endif // DeprecatedPaintLayerStackingNodeIterator_h |
OLD | NEW |