Chromium Code Reviews| 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 | |
|
mstensho (USE GERRIT)
2015/09/01 18:59:06
I don't think "stacking contexts" is the right ter
Julien - ping for review
2015/09/03 14:25:54
The CSS word for stacking context + positioned is
mstensho (USE GERRIT)
2015/09/04 13:22:32
OK. Lacking a better word for a true stacking cont
| |
| 44 // during painting and hit-testing. | |
| 41 NormalFlowChildren = 1 << 1, | 45 NormalFlowChildren = 1 << 1, |
| 42 PositiveZOrderChildren = 1 << 2, | 46 PositiveZOrderChildren = 1 << 2, |
| 43 AllChildren = NegativeZOrderChildren | NormalFlowChildren | PositiveZOrderCh ildren | 47 AllChildren = NegativeZOrderChildren | NormalFlowChildren | PositiveZOrderCh ildren |
| 44 }; | 48 }; |
| 45 | 49 |
| 46 class DeprecatedPaintLayerStackingNode; | 50 class DeprecatedPaintLayerStackingNode; |
| 47 class DeprecatedPaintLayer; | 51 class DeprecatedPaintLayer; |
| 48 | 52 |
| 49 // This iterator walks the DeprecatedPaintLayerStackingNode lists in the followi ng order: | 53 // This iterator walks the DeprecatedPaintLayerStackingNode lists in the followi ng order: |
| 50 // NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren. | 54 // NegativeZOrderChildren -> NormalFlowChildren -> PositiveZOrderChildren. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 | 87 |
| 84 const DeprecatedPaintLayerStackingNode& m_root; | 88 const DeprecatedPaintLayerStackingNode& m_root; |
| 85 unsigned m_remainingChildren; | 89 unsigned m_remainingChildren; |
| 86 int m_index; | 90 int m_index; |
| 87 DeprecatedPaintLayer* m_currentNormalFlowChild; | 91 DeprecatedPaintLayer* m_currentNormalFlowChild; |
| 88 }; | 92 }; |
| 89 | 93 |
| 90 } // namespace blink | 94 } // namespace blink |
| 91 | 95 |
| 92 #endif // DeprecatedPaintLayerStackingNodeIterator_h | 96 #endif // DeprecatedPaintLayerStackingNodeIterator_h |
| OLD | NEW |