mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Derive Clone for FlowContext
This commit is contained in:
parent
aae230c73f
commit
ae79f5351d
1 changed files with 1 additions and 6 deletions
|
@ -45,6 +45,7 @@ use servo_util::tree::{TreeNode, TreeNodeRef, TreeUtils};
|
||||||
|
|
||||||
/// The type of the formatting context and data specific to each context, such as line box
|
/// The type of the formatting context and data specific to each context, such as line box
|
||||||
/// structures or float lists.
|
/// structures or float lists.
|
||||||
|
#[deriving(Clone)]
|
||||||
pub enum FlowContext {
|
pub enum FlowContext {
|
||||||
AbsoluteFlow(@mut FlowData),
|
AbsoluteFlow(@mut FlowData),
|
||||||
BlockFlow(@mut BlockFlowData),
|
BlockFlow(@mut BlockFlowData),
|
||||||
|
@ -64,12 +65,6 @@ pub enum FlowContextType {
|
||||||
Flow_Table
|
Flow_Table
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Clone for FlowContext {
|
|
||||||
fn clone(&self) -> FlowContext {
|
|
||||||
*self
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl FlowContext {
|
impl FlowContext {
|
||||||
pub fn teardown(&self) {
|
pub fn teardown(&self) {
|
||||||
match *self {
|
match *self {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue