Implement Clone for Copy types.

This commit is contained in:
Ms2ger 2015-04-28 19:42:46 +02:00
parent b6fc83cf2b
commit 903305416a
53 changed files with 105 additions and 105 deletions

View file

@ -190,7 +190,7 @@ impl Drop for Node {
/// suppress observers flag
/// https://dom.spec.whatwg.org/#concept-node-insert
/// https://dom.spec.whatwg.org/#concept-node-remove
#[derive(Copy)]
#[derive(Copy, Clone)]
enum SuppressObserver {
Suppressed,
Unsuppressed
@ -266,7 +266,7 @@ impl LayoutDataRef {
}
/// The different types of nodes.
#[derive(Copy, PartialEq, Debug)]
#[derive(Copy, Clone, PartialEq, Debug)]
#[jstraceable]
pub enum NodeTypeId {
DocumentType,
@ -1311,7 +1311,7 @@ impl Iterator for TreeIterator {
/// Specifies whether children must be recursively cloned or not.
#[derive(Copy, PartialEq)]
#[derive(Copy, Clone, PartialEq)]
pub enum CloneChildrenFlag {
CloneChildren,
DoNotCloneChildren