| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void removeOnlyThisLayer(); | 89 void removeOnlyThisLayer(); |
| 90 void insertOnlyThisLayer(); | 90 void insertOnlyThisLayer(); |
| 91 | 91 |
| 92 void styleChanged(StyleDifference, const RenderStyle* oldStyle); | 92 void styleChanged(StyleDifference, const RenderStyle* oldStyle); |
| 93 | 93 |
| 94 // FIXME: Many people call this function while it has out-of-date informatio
n. | 94 // FIXME: Many people call this function while it has out-of-date informatio
n. |
| 95 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; } | 95 bool isSelfPaintingLayer() const { return m_isSelfPaintingLayer; } |
| 96 | 96 |
| 97 void setLayerType(LayerType layerType) { m_layerType = layerType; } | 97 void setLayerType(LayerType layerType) { m_layerType = layerType; } |
| 98 | 98 |
| 99 bool isTransparent() const { return renderer()->isTransparent() || renderer(
)->hasMask(); } | 99 bool isTransparent() const { return renderer()->isTransparent(); } |
| 100 RenderLayer* transparentPaintingAncestor(); | 100 RenderLayer* transparentPaintingAncestor(); |
| 101 void beginTransparencyLayers(GraphicsContext*, const RenderLayer* rootLayer,
const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation); | 101 void beginTransparencyLayers(GraphicsContext*, const RenderLayer* rootLayer,
const LayoutRect& paintDirtyRect, const LayoutSize& subPixelAccumulation); |
| 102 | 102 |
| 103 const RenderLayer* root() const | 103 const RenderLayer* root() const |
| 104 { | 104 { |
| 105 const RenderLayer* curr = this; | 105 const RenderLayer* curr = this; |
| 106 while (curr->parent()) | 106 while (curr->parent()) |
| 107 curr = curr->parent(); | 107 curr = curr->parent(); |
| 108 return curr; | 108 return curr; |
| 109 } | 109 } |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 371 |
| 372 } // namespace blink | 372 } // namespace blink |
| 373 | 373 |
| 374 #ifndef NDEBUG | 374 #ifndef NDEBUG |
| 375 // Outside the WebCore namespace for ease of invocation from gdb. | 375 // Outside the WebCore namespace for ease of invocation from gdb. |
| 376 void showLayerTree(const blink::RenderLayer*); | 376 void showLayerTree(const blink::RenderLayer*); |
| 377 void showLayerTree(const blink::RenderObject*); | 377 void showLayerTree(const blink::RenderObject*); |
| 378 #endif | 378 #endif |
| 379 | 379 |
| 380 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ | 380 #endif // SKY_ENGINE_CORE_RENDERING_RENDERLAYER_H_ |
| OLD | NEW |