OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 30 matching lines...) Expand all Loading... |
41 * version of this file under any of the LGPL, the MPL or the GPL. | 41 * version of this file under any of the LGPL, the MPL or the GPL. |
42 */ | 42 */ |
43 | 43 |
44 #include "config.h" | 44 #include "config.h" |
45 #include "core/paint/PaintLayerStackingNode.h" | 45 #include "core/paint/PaintLayerStackingNode.h" |
46 | 46 |
47 #include "core/layout/LayoutView.h" | 47 #include "core/layout/LayoutView.h" |
48 #include "core/layout/compositing/PaintLayerCompositor.h" | 48 #include "core/layout/compositing/PaintLayerCompositor.h" |
49 #include "core/paint/PaintLayer.h" | 49 #include "core/paint/PaintLayer.h" |
50 #include "public/platform/Platform.h" | 50 #include "public/platform/Platform.h" |
| 51 #include <algorithm> |
51 | 52 |
52 namespace blink { | 53 namespace blink { |
53 | 54 |
54 // FIXME: This should not require PaintLayer. There is currently a cycle where | 55 // FIXME: This should not require PaintLayer. There is currently a cycle where |
55 // in order to determine if we shoulBeTreatedAsStackingContext() we have to ask
the paint | 56 // in order to determine if we shoulBeTreatedAsStackingContext() we have to ask
the paint |
56 // layer about some of its state. | 57 // layer about some of its state. |
57 PaintLayerStackingNode::PaintLayerStackingNode(PaintLayer* layer) | 58 PaintLayerStackingNode::PaintLayerStackingNode(PaintLayer* layer) |
58 : m_layer(layer) | 59 : m_layer(layer) |
59 #if ENABLE(ASSERT) | 60 #if ENABLE(ASSERT) |
60 , m_layerListMutationAllowed(true) | 61 , m_layerListMutationAllowed(true) |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } | 256 } |
256 return 0; | 257 return 0; |
257 } | 258 } |
258 | 259 |
259 LayoutBoxModelObject* PaintLayerStackingNode::layoutObject() const | 260 LayoutBoxModelObject* PaintLayerStackingNode::layoutObject() const |
260 { | 261 { |
261 return m_layer->layoutObject(); | 262 return m_layer->layoutObject(); |
262 } | 263 } |
263 | 264 |
264 } // namespace blink | 265 } // namespace blink |
OLD | NEW |