aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_caption.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-10-14 00:03:57 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-10-14 00:03:57 +0200
commitb505c9e94817847e19f22854b2ee4258f66f18d2 (patch)
treefad6d01d0f273b36823f70bda152310fa12f7a28 /components/layout/table_caption.rs
parent4c5d6fd8345f301be4aafe2dba71cdf2de0ab01e (diff)
downloadservo-b505c9e94817847e19f22854b2ee4258f66f18d2.tar.gz
servo-b505c9e94817847e19f22854b2ee4258f66f18d2.zip
Introduce an unsafe HasBaseFlow trait for base()/base_mut() casts.
Diffstat (limited to 'components/layout/table_caption.rs')
-rw-r--r--components/layout/table_caption.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs
index ecdd52784ee..c6425e93b4e 100644
--- a/components/layout/table_caption.rs
+++ b/components/layout/table_caption.rs
@@ -19,7 +19,11 @@ use std::fmt;
use style::logical_geometry::LogicalSize;
use style::properties::ComputedValues;
+#[allow(unsafe_code)]
+unsafe impl ::flow::HasBaseFlow for TableCaptionFlow {}
+
/// A table formatting context.
+#[repr(C)]
pub struct TableCaptionFlow {
pub block_flow: BlockFlow,
}