Chromium Code Reviews| Index: Source/platform/graphics/Image.cpp |
| diff --git a/Source/platform/graphics/Image.cpp b/Source/platform/graphics/Image.cpp |
| index 55a8ac41462db62ea55f91c17508dfbf7162daa8..27e6cd08a01fa6929e1276ce536f867db7411fe7 100644 |
| --- a/Source/platform/graphics/Image.cpp |
| +++ b/Source/platform/graphics/Image.cpp |
| @@ -237,4 +237,11 @@ void Image::computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsic |
| intrinsicHeight = Length(intrinsicRatio.height(), Fixed); |
| } |
| +PassRefPtr<Image> Image::imageForDefaultFrame() |
| +{ |
| + RefPtr<Image> img(this); |
|
Justin Novosad
2014/07/17 17:45:25
Nit: img -> image (we don't usually abbreviate nam
Rémi Piotaix
2014/07/17 17:56:45
Done.
|
| + |
| + return img.release(); |
| +} |
| + |
| } |