aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-12-05 22:13:50 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-12-06 02:35:10 +0100
commitaf879523eabbdb72b672aab50da1f83bb782ed1e (patch)
tree4071fb814c411a6c2fd52192d0994bd4861af94d /components/layout/table.rs
parent37cd870a9e41fe6e6ba12e0622f2e2a935fda89a (diff)
downloadservo-af879523eabbdb72b672aab50da1f83bb782ed1e.tar.gz
servo-af879523eabbdb72b672aab50da1f83bb782ed1e.zip
style: Make all keywords CamelCase for consistency.
This prevents confusion and paves the ground for derive(Parse) of them.
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r--components/layout/table.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs
index 6e67c5536c6..f75053f9fff 100644
--- a/components/layout/table.rs
+++ b/components/layout/table.rs
@@ -68,7 +68,7 @@ impl TableFlow {
pub fn from_fragment(fragment: Fragment) -> TableFlow {
let mut block_flow = BlockFlow::from_fragment(fragment);
let table_layout =
- if block_flow.fragment().style().get_table().table_layout == table_layout::T::fixed {
+ if block_flow.fragment().style().get_table().table_layout == table_layout::T::Fixed {
TableLayout::Fixed
} else {
TableLayout::Auto
@@ -192,8 +192,8 @@ impl TableFlow {
pub fn spacing(&self) -> border_spacing::T {
let style = self.block_flow.fragment.style();
match style.get_inheritedtable().border_collapse {
- border_collapse::T::separate => style.get_inheritedtable().border_spacing,
- border_collapse::T::collapse => border_spacing::T::zero(),
+ border_collapse::T::Separate => style.get_inheritedtable().border_spacing,
+ border_collapse::T::Collapse => border_spacing::T::zero(),
}
}
@@ -268,7 +268,7 @@ impl Flow for TableFlow {
.fragment
.style
.get_inheritedtable()
- .border_collapse == border_collapse::T::collapse;
+ .border_collapse == border_collapse::T::Collapse;
let table_inline_collapsed_borders = if collapsing_borders {
Some(TableInlineCollapsedBorders {
start: CollapsedBorder::inline_start(&*self.block_flow.fragment.style,
@@ -495,8 +495,8 @@ impl Flow for TableFlow {
.style
.get_inheritedtable()
.border_collapse {
- border_collapse::T::separate => BorderPaintingMode::Separate,
- border_collapse::T::collapse => BorderPaintingMode::Hidden,
+ border_collapse::T::Separate => BorderPaintingMode::Separate,
+ border_collapse::T::Collapse => BorderPaintingMode::Hidden,
};
self.block_flow.build_display_list_for_block(state, border_painting_mode);
@@ -733,7 +733,7 @@ pub trait TableLikeFlow {
impl TableLikeFlow for BlockFlow {
fn assign_block_size_for_table_like_flow(&mut self, block_direction_spacing: Au) {
debug_assert!(self.fragment.style.get_inheritedtable().border_collapse ==
- border_collapse::T::separate || block_direction_spacing == Au(0));
+ border_collapse::T::Separate || block_direction_spacing == Au(0));
if self.base.restyle_damage.contains(ServoRestyleDamage::REFLOW) {
// Our current border-box position.
@@ -750,8 +750,8 @@ impl TableLikeFlow for BlockFlow {
let child_table_row = kid.as_table_row();
current_block_offset = current_block_offset +
match self.fragment.style.get_inheritedtable().border_collapse {
- border_collapse::T::separate => block_direction_spacing,
- border_collapse::T::collapse => {
+ border_collapse::T::Separate => block_direction_spacing,
+ border_collapse::T::Collapse => {
child_table_row.collapsed_border_spacing.block_start
}
}