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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.cpp

Issue 2807073002: Removed local RefPtr objects created from PassRefPtr arguments. (Closed)
Patch Set: addressed review Created 3 years, 8 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/frame/ImageBitmap.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 20ec7f30991e0658f2b9619285a2814c70b77ebc..8025ec3a3d9b294890232b0201dbb833a18aab54 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -964,18 +964,17 @@ ImageBitmap::ImageBitmap(ImageBitmap* bitmap,
image_->SetPremultiplied(parsed_options.premultiply_alpha);
}
-ImageBitmap::ImageBitmap(PassRefPtr<StaticBitmapImage> image,
+ImageBitmap::ImageBitmap(RefPtr<StaticBitmapImage> image,
Optional<IntRect> crop_rect,
const ImageBitmapOptions& options) {
bool origin_clean = image->OriginClean();
- RefPtr<Image> input = image;
ParsedOptions parsed_options =
- ParseOptions(options, crop_rect, input->size());
+ ParseOptions(options, crop_rect, image->size());
if (DstBufferSizeHasOverflow(parsed_options))
return;
image_ = CropImageAndApplyColorSpaceConversion(
- input.Get(), parsed_options, kPremultiplyAlpha,
+ image.Get(), parsed_options, kPremultiplyAlpha,
ColorBehavior::TransformToGlobalTarget());
if (!image_)
return;
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.h ('k') | third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698