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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h

Issue 2173363002: Improve code readibility of PaintPropertyTreeBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra "const" (might be a typo) Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
index a143354f73e86cd44a0421362d7b6784625bc593..9aafaea16f8000c57ea88cd1ad1d164736b30e03 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/EffectPaintPropertyNode.h
@@ -19,12 +19,12 @@ namespace blink {
// TODO(pdr): Support more effects than just opacity.
class PLATFORM_EXPORT EffectPaintPropertyNode : public RefCounted<EffectPaintPropertyNode> {
public:
- static PassRefPtr<EffectPaintPropertyNode> create(PassRefPtr<EffectPaintPropertyNode> parent, float opacity)
+ static PassRefPtr<EffectPaintPropertyNode> create(PassRefPtr<const EffectPaintPropertyNode> parent, float opacity)
{
return adoptRef(new EffectPaintPropertyNode(parent, opacity));
}
- void update(PassRefPtr<EffectPaintPropertyNode> parent, float opacity)
+ void update(PassRefPtr<const EffectPaintPropertyNode> parent, float opacity)
{
m_parent = parent;
m_opacity = opacity;
@@ -36,10 +36,10 @@ public:
const EffectPaintPropertyNode* parent() const { return m_parent.get(); }
private:
- EffectPaintPropertyNode(PassRefPtr<EffectPaintPropertyNode> parent, float opacity)
+ EffectPaintPropertyNode(PassRefPtr<const EffectPaintPropertyNode> parent, float opacity)
: m_parent(parent), m_opacity(opacity) { }
- RefPtr<EffectPaintPropertyNode> m_parent;
+ RefPtr<const EffectPaintPropertyNode> m_parent;
float m_opacity;
};

Powered by Google App Engine
This is Rietveld 408576698