Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: sky/engine/core/rendering/RenderLayer.h

Issue 893093002: Delete remaining masks dead code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderImage.cpp ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderImage.cpp ('k') | sky/engine/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698