Skip to content
This repository has been archived by the owner. It is now read-only.

Add Clone trait for some structs. #153

Merged
merged 1 commit into from Apr 19, 2015
Merged

Add Clone trait for some structs. #153

merged 1 commit into from Apr 19, 2015

Conversation

@mmatyas
Copy link
Contributor

mmatyas commented Apr 17, 2015

Added Clone trait for some structs, now we can save/restore the canvas context state.

Required by servo/servo#5731.

ColorPattern {
color: self.color,
azure_color_pattern: AzCreateColorPattern(&mut self.color.clone())
}

This comment has been minimized.

@jdm

jdm Apr 17, 2015

Member

Let's just have this call ColorPattern::new(self.color.clone()) instead.

@mmatyas mmatyas force-pushed the mmatyas:canvas_clones branch from 958d95d to da6cb49 Apr 18, 2015
jdm added a commit that referenced this pull request Apr 19, 2015
Add Clone trait for some structs.
@jdm jdm merged commit 3e5daf6 into servo:master Apr 19, 2015
bors-servo pushed a commit to servo/servo that referenced this pull request Apr 19, 2015
This patch enables the use of `save()` and `restore()` for the canvas context, which is used by *a lot* of sites and scripts.

Depends on servo/rust-azure#153.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5731)
<!-- Reviewable:end -->
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this pull request Jun 12, 2017
…om mmatyas:canvas_saverestore); r=jdm

This patch enables the use of `save()` and `restore()` for the canvas context, which is used by *a lot* of sites and scripts.

Depends on servo/rust-azure#153.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c7c289acae3ea012338a5b25bc50a10e7f7074d
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 30, 2019
…om mmatyas:canvas_saverestore); r=jdm

This patch enables the use of `save()` and `restore()` for the canvas context, which is used by *a lot* of sites and scripts.

Depends on servo/rust-azure#153.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c7c289acae3ea012338a5b25bc50a10e7f7074d

UltraBlame original commit: b761a3a9f81e691aacfd7e494737c2b65b14417b
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…om mmatyas:canvas_saverestore); r=jdm

This patch enables the use of `save()` and `restore()` for the canvas context, which is used by *a lot* of sites and scripts.

Depends on servo/rust-azure#153.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c7c289acae3ea012338a5b25bc50a10e7f7074d

UltraBlame original commit: b761a3a9f81e691aacfd7e494737c2b65b14417b
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…om mmatyas:canvas_saverestore); r=jdm

This patch enables the use of `save()` and `restore()` for the canvas context, which is used by *a lot* of sites and scripts.

Depends on servo/rust-azure#153.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c7c289acae3ea012338a5b25bc50a10e7f7074d

UltraBlame original commit: b761a3a9f81e691aacfd7e494737c2b65b14417b
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.