| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |