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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 746163002: Drop RenderObject::hasBlendMode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderObject.h » ('j') | Source/core/rendering/RenderObject.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698