aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/css/matching.rs8
-rw-r--r--components/layout/table_cell.rs2
-rw-r--r--components/layout/wrapper.rs2
3 files changed, 6 insertions, 6 deletions
diff --git a/components/layout/css/matching.rs b/components/layout/css/matching.rs
index f8d4a3f72c2..4251769de60 100644
--- a/components/layout/css/matching.rs
+++ b/components/layout/css/matching.rs
@@ -559,10 +559,10 @@ impl<'ln> MatchMethods for LayoutNode<'ln> {
// In terms of `SimpleSelector`s, these two functions will insert and remove:
- // - `LocalNameSelector`
- // - `NamepaceSelector`
- // - `IDSelector`
- // - `ClassSelector`
+ // - `SimpleSelector::LocalName`
+ // - `SimpleSelector::Namepace`
+ // - `SimpleSelector::ID`
+ // - `SimpleSelector::Class`
fn insert_into_bloom_filter(&self, bf: &mut BloomFilter) {
// Only elements are interesting.
diff --git a/components/layout/table_cell.rs b/components/layout/table_cell.rs
index a10ac9cf7a2..3d1f1fd54e3 100644
--- a/components/layout/table_cell.rs
+++ b/components/layout/table_cell.rs
@@ -39,7 +39,7 @@ impl TableCellFlow {
-> TableCellFlow {
TableCellFlow {
block_flow: BlockFlow::from_node_and_fragment(node, fragment),
- column_span: node.get_unsigned_integer_attribute(UnsignedIntegerAttribute::ColSpanUnsignedIntegerAttribute)
+ column_span: node.get_unsigned_integer_attribute(UnsignedIntegerAttribute::ColSpan)
.unwrap_or(1),
visible: visible,
}
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs
index 53677273832..c197c60242a 100644
--- a/components/layout/wrapper.rs
+++ b/components/layout/wrapper.rs
@@ -594,7 +594,7 @@ impl<'le> TElement<'le> for LayoutElement<'le> {
fn has_nonzero_border(self) -> bool {
unsafe {
match self.element
- .get_unsigned_integer_attribute_for_layout(UnsignedIntegerAttribute::BorderUnsignedIntegerAttribute) {
+ .get_unsigned_integer_attribute_for_layout(UnsignedIntegerAttribute::Border) {
None | Some(0) => false,
_ => true,
}