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; |