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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 449
450 PaintCurrentFrame(image_buffer->Canvas(), 450 PaintCurrentFrame(image_buffer->Canvas(),
451 IntRect(IntPoint(0, 0), intrinsic_size), nullptr); 451 IntRect(IntPoint(0, 0), intrinsic_size), nullptr);
452 RefPtr<Image> snapshot = image_buffer->NewImageSnapshot(); 452 RefPtr<Image> snapshot = image_buffer->NewImageSnapshot();
453 if (!snapshot) { 453 if (!snapshot) {
454 *status = kInvalidSourceImageStatus; 454 *status = kInvalidSourceImageStatus;
455 return nullptr; 455 return nullptr;
456 } 456 }
457 457
458 *status = kNormalSourceImageStatus; 458 *status = kNormalSourceImageStatus;
459 return snapshot.Release(); 459 return snapshot;
460 } 460 }
461 461
462 bool HTMLVideoElement::WouldTaintOrigin( 462 bool HTMLVideoElement::WouldTaintOrigin(
463 SecurityOrigin* destination_security_origin) const { 463 SecurityOrigin* destination_security_origin) const {
464 return !IsMediaDataCORSSameOrigin(destination_security_origin); 464 return !IsMediaDataCORSSameOrigin(destination_security_origin);
465 } 465 }
466 466
467 FloatSize HTMLVideoElement::ElementSize(const FloatSize&) const { 467 FloatSize HTMLVideoElement::ElementSize(const FloatSize&) const {
468 return FloatSize(videoWidth(), videoHeight()); 468 return FloatSize(videoWidth(), videoHeight());
469 } 469 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 return HTMLMediaElement::DisplayType(); 532 return HTMLMediaElement::DisplayType();
533 } 533 }
534 534
535 void HTMLVideoElement::DisableMediaRemoting() { 535 void HTMLVideoElement::DisableMediaRemoting() {
536 media_remoting_status_ = MediaRemotingStatus::kDisabled; 536 media_remoting_status_ = MediaRemotingStatus::kDisabled;
537 if (GetWebMediaPlayer()) 537 if (GetWebMediaPlayer())
538 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true); 538 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true);
539 } 539 }
540 540
541 } // namespace blink 541 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/FormData.cpp ('k') | third_party/WebKit/Source/core/html/forms/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698