| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 6 * | 6 * |
| 7 * Other contributors: | 7 * Other contributors: |
| 8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
| 10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 * version of this file under the LGPL, indicate your decision by | 38 * version of this file under the LGPL, indicate your decision by |
| 39 * deletingthe provisions above and replace them with the notice and | 39 * deletingthe provisions above and replace them with the notice and |
| 40 * other provisions required by the MPL or the GPL, as the case may be. | 40 * other provisions required by the MPL or the GPL, as the case may be. |
| 41 * If you do not delete the provisions above, a recipient may use your | 41 * If you do not delete the provisions above, a recipient may use your |
| 42 * version of this file under any of the LGPL, the MPL or the GPL. | 42 * version of this file under any of the LGPL, the MPL or the GPL. |
| 43 */ | 43 */ |
| 44 | 44 |
| 45 #ifndef PaintLayerReflectionInfo_h | 45 #ifndef PaintLayerReflectionInfo_h |
| 46 #define PaintLayerReflectionInfo_h | 46 #define PaintLayerReflectionInfo_h |
| 47 | 47 |
| 48 #include "core/layout/LayoutBoxModelObject.h" | |
| 49 #include "core/paint/PaintLayerPainter.h" | 48 #include "core/paint/PaintLayerPainter.h" |
| 49 #include "core/paint/PaintLayerPaintingInfo.h" |
| 50 #include "wtf/Allocator.h" | 50 #include "wtf/Allocator.h" |
| 51 #include "wtf/Noncopyable.h" | 51 #include "wtf/Noncopyable.h" |
| 52 | 52 |
| 53 namespace blink { | 53 namespace blink { |
| 54 | 54 |
| 55 class ComputedStyle; |
| 56 class GraphicsContext; |
| 55 class PaintLayer; | 57 class PaintLayer; |
| 58 class LayoutBox; |
| 56 class LayoutReplica; | 59 class LayoutReplica; |
| 57 | 60 |
| 58 // PaintLayerReflectionInfo is the main object used for reflections. | 61 // PaintLayerReflectionInfo is the main object used for reflections. |
| 59 // https://www.webkit.org/blog/182/css-reflections/ | 62 // https://www.webkit.org/blog/182/css-reflections/ |
| 60 // | 63 // |
| 61 // All reflection operations are done through this object, which delegates to | 64 // All reflection operations are done through this object, which delegates to |
| 62 // LayoutReplica and ReflectionPainter. | 65 // LayoutReplica and ReflectionPainter. |
| 63 // | 66 // |
| 64 // Painting Reflections is handled by painting the same PaintLayer again with | 67 // Painting Reflections is handled by painting the same PaintLayer again with |
| 65 // some special paint flags (the most important being | 68 // some special paint flags (the most important being |
| (...skipping 30 matching lines...) Expand all Loading... |
| 96 | 99 |
| 97 // A state bit tracking if we are painting inside this replica. | 100 // A state bit tracking if we are painting inside this replica. |
| 98 // This is done to avoid infinite recursion during painting while also | 101 // This is done to avoid infinite recursion during painting while also |
| 99 // enabling nested reflection. | 102 // enabling nested reflection. |
| 100 unsigned m_isPaintingInsideReflection : 1; | 103 unsigned m_isPaintingInsideReflection : 1; |
| 101 }; | 104 }; |
| 102 | 105 |
| 103 } // namespace blink | 106 } // namespace blink |
| 104 | 107 |
| 105 #endif // PaintLayerReflectinInfo_h | 108 #endif // PaintLayerReflectinInfo_h |
| OLD | NEW |