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

Unified Diff: third_party/WebKit/Source/core/style/StyleGeneratedImage.h

Issue 1387113002: Change StyleResolverState.styleImage() to take a const CSSValue& (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODOs to replace the members with const members Created 5 years, 2 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/core/style/StyleGeneratedImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleGeneratedImage.h b/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
index 2f6c3b0c0c909fb5e57cee5885f1695e07ea7564..4703939642e1ca18d91cbf3258a3574472b22265 100644
--- a/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
@@ -34,7 +34,7 @@ class CSSImageGeneratorValue;
class CORE_EXPORT StyleGeneratedImage final : public StyleImage {
public:
- static PassRefPtrWillBeRawPtr<StyleGeneratedImage> create(CSSImageGeneratorValue* value)
+ static PassRefPtrWillBeRawPtr<StyleGeneratedImage> create(const CSSImageGeneratorValue& value)
{
return adoptRefWillBeNoop(new StyleGeneratedImage(value));
}
@@ -58,8 +58,10 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- StyleGeneratedImage(PassRefPtrWillBeRawPtr<CSSImageGeneratorValue>);
+ StyleGeneratedImage(const CSSImageGeneratorValue&);
+ // TODO(sashab): Replace this with <const CSSImageGeneratorValue> once RefPtrWillBeMember<>
+ // supports const types.
RefPtrWillBeMember<CSSImageGeneratorValue> m_imageGeneratorValue;
IntSize m_containerSize;
bool m_fixedSize;

Powered by Google App Engine
This is Rietveld 408576698