aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-05-10 07:43:53 -0400
committerGitHub <noreply@github.com>2019-05-10 07:43:53 -0400
commitb604a87003c1bf081bbaa48153fe31fc96fc6b9c (patch)
treedaeefa6d6be0d459e4c431a70562a6e05d691d77 /components/script
parentb1b47d8046ada8f6c7dc2da65ab68018b0676b0e (diff)
parentf643740c15d6775af9933c033040a509e8e2e122 (diff)
downloadservo-b604a87003c1bf081bbaa48153fe31fc96fc6b9c.tar.gz
servo-b604a87003c1bf081bbaa48153fe31fc96fc6b9c.zip
Auto merge of #23349 - ceyusa:no-clone-data, r=ferjm
No need to clone again the raw data. Players frame's get_data() already delivers a cloned raw data. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because there's not functional changes. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23349) <!-- Reviewable:end -->
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/htmlmediaelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 9bbfb30d46c..66fb85b6732 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -120,7 +120,7 @@ impl FrameRenderer for MediaFrameRenderer {
let mut txn = Transaction::new();
- let image_data = ImageData::Raw(frame.get_data().clone());
+ let image_data = ImageData::Raw(frame.get_data());
if let Some(old_image_key) = mem::replace(&mut self.very_old_frame, self.old_frame.take()) {
txn.delete_image(old_image_key);