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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void removeOnlyThisLayer(); | 109 void removeOnlyThisLayer(); |
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(
)->style()->hasBlendMode() || renderer()->hasMask(); } |
120 | 120 |
121 bool isReflection() const { return renderer()->isReplica(); } | 121 bool isReflection() const { return renderer()->isReplica(); } |
122 RenderLayerReflectionInfo* reflectionInfo() { return m_reflectionInfo.get();
} | 122 RenderLayerReflectionInfo* reflectionInfo() { return m_reflectionInfo.get();
} |
123 const RenderLayerReflectionInfo* reflectionInfo() const { return m_reflectio
nInfo.get(); } | 123 const RenderLayerReflectionInfo* reflectionInfo() const { return m_reflectio
nInfo.get(); } |
124 | 124 |
125 const RenderLayer* root() const | 125 const RenderLayer* root() const |
126 { | 126 { |
127 const RenderLayer* curr = this; | 127 const RenderLayer* curr = this; |
128 while (curr->parent()) | 128 while (curr->parent()) |
129 curr = curr->parent(); | 129 curr = curr->parent(); |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 | 682 |
683 } // namespace blink | 683 } // namespace blink |
684 | 684 |
685 #ifndef NDEBUG | 685 #ifndef NDEBUG |
686 // Outside the WebCore namespace for ease of invocation from gdb. | 686 // Outside the WebCore namespace for ease of invocation from gdb. |
687 void showLayerTree(const blink::RenderLayer*); | 687 void showLayerTree(const blink::RenderLayer*); |
688 void showLayerTree(const blink::RenderObject*); | 688 void showLayerTree(const blink::RenderObject*); |
689 #endif | 689 #endif |
690 | 690 |
691 #endif // RenderLayer_h | 691 #endif // RenderLayer_h |
OLD | NEW |