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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.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/PropertyTreeState.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
index c0520c27c1eeaa9ec2b7d208df097e05d2840865..dfefef95ac34b406fe4455cb332102c23980cf28 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
@@ -20,14 +20,14 @@ struct PropertyTreeState {
PropertyTreeState() : PropertyTreeState(nullptr, nullptr, nullptr) {}
PropertyTreeState(
- TransformPaintPropertyNode* transform,
- ClipPaintPropertyNode* clip,
- EffectPaintPropertyNode* effect)
+ const TransformPaintPropertyNode* transform,
+ const ClipPaintPropertyNode* clip,
+ const EffectPaintPropertyNode* effect)
: transform(transform), clip(clip), effect(effect) {}
- RefPtr<TransformPaintPropertyNode> transform;
- RefPtr<ClipPaintPropertyNode> clip;
- RefPtr<EffectPaintPropertyNode> effect;
+ RefPtr<const TransformPaintPropertyNode> transform;
+ RefPtr<const ClipPaintPropertyNode> clip;
+ RefPtr<const EffectPaintPropertyNode> effect;
};
template <class A>

Powered by Google App Engine
This is Rietveld 408576698