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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void insertOnlyThisLayer(); | 110 void insertOnlyThisLayer(); |
111 | 111 |
112 void styleChanged(StyleDifference, const RenderStyle* oldStyle); | 112 void styleChanged(StyleDifference, const RenderStyle* oldStyle); |
113 | 113 |
114 // FIXME: Many people call this function while it has out-of-date informatio
n. | 114 // FIXME: Many people call this function while it has out-of-date informatio
n. |
115 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; } | 115 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; } |
116 | 116 |
117 void setLayerType(LayerType layerType) { m_layerType = layerType; } | 117 void setLayerType(LayerType layerType) { m_layerType = layerType; } |
118 | 118 |
119 bool isTransparent() const { return renderer()->isTransparent() || renderer(
)->hasBlendMode() || renderer()->hasMask(); } | 119 bool isTransparent() const { return renderer()->isTransparent() || renderer(
)->hasBlendMode() || renderer()->hasMask(); } |
120 RenderLayer* transparentPaintingAncestor(); | |
121 | 120 |
122 bool isReflection() const { return renderer()->isReplica(); } | 121 bool isReflection() const { return renderer()->isReplica(); } |
123 RenderLayerReflectionInfo* reflectionInfo() { return m_reflectionInfo.get();
} | 122 RenderLayerReflectionInfo* reflectionInfo() { return m_reflectionInfo.get();
} |
124 const RenderLayerReflectionInfo* reflectionInfo() const { return m_reflectio
nInfo.get(); } | 123 const RenderLayerReflectionInfo* reflectionInfo() const { return m_reflectio
nInfo.get(); } |
125 | 124 |
126 const RenderLayer* root() const | 125 const RenderLayer* root() const |
127 { | 126 { |
128 const RenderLayer* curr = this; | 127 const RenderLayer* curr = this; |
129 while (curr->parent()) | 128 while (curr->parent()) |
130 curr = curr->parent(); | 129 curr = curr->parent(); |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 | 689 |
691 } // namespace blink | 690 } // namespace blink |
692 | 691 |
693 #ifndef NDEBUG | 692 #ifndef NDEBUG |
694 // Outside the WebCore namespace for ease of invocation from gdb. | 693 // Outside the WebCore namespace for ease of invocation from gdb. |
695 void showLayerTree(const blink::RenderLayer*); | 694 void showLayerTree(const blink::RenderLayer*); |
696 void showLayerTree(const blink::RenderObject*); | 695 void showLayerTree(const blink::RenderObject*); |
697 #endif | 696 #endif |
698 | 697 |
699 #endif // RenderLayer_h | 698 #endif // RenderLayer_h |
OLD | NEW |