Index: third_party/WebKit/Source/core/style/StylePendingImage.h |
diff --git a/third_party/WebKit/Source/core/style/StylePendingImage.h b/third_party/WebKit/Source/core/style/StylePendingImage.h |
index 458a732a8dccdd8d1fb69d2fe425158bcb5bf7b4..fa39c80970e7a831aa00158d3f931952c2b2c483 100644 |
--- a/third_party/WebKit/Source/core/style/StylePendingImage.h |
+++ b/third_party/WebKit/Source/core/style/StylePendingImage.h |
@@ -41,7 +41,8 @@ namespace blink { |
class StylePendingImage final : public StyleImage { |
public: |
- static PassRefPtrWillBeRawPtr<StylePendingImage> create(const CSSValue& value) |
+ // TODO(sashab): Make this take a PassRefPtrWillBeRawPtr<const CSSValue>. |
+ static PassRefPtrWillBeRawPtr<StylePendingImage> create(PassRefPtrWillBeRawPtr<CSSValue> value) |
{ |
return adoptRefWillBeNoop(new StylePendingImage(value)); |
} |
@@ -83,8 +84,8 @@ public: |
} |
private: |
- explicit StylePendingImage(const CSSValue& value) |
- : m_value(const_cast<CSSValue*>(&value)) |
+ explicit StylePendingImage(PassRefPtrWillBeRawPtr<CSSValue> value) |
+ : m_value(value) |
{ |
m_isPendingImage = true; |
} |