aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-14 08:31:30 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-28 13:17:47 +0100
commitbe69f9c3e6a6f5efb5ba1edd50955cb12c111bf8 (patch)
treedb8be2dfee5cff6ef0c42e8d46c623eb87529e5a /components/layout/construct.rs
parent82fc6d9f49a657e2857da3f1b22140e3b6efdf09 (diff)
downloadservo-be69f9c3e6a6f5efb5ba1edd50955cb12c111bf8.tar.gz
servo-be69f9c3e6a6f5efb5ba1edd50955cb12c111bf8.zip
Rustfmt has changed its default style :/
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 76b15b3b1c7..efa31184dac 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -763,17 +763,20 @@ impl<'a, ConcreteThreadSafeLayoutNode: ThreadSafeLayoutNode>
node: &ConcreteThreadSafeLayoutNode,
) -> ConstructionResult {
let mut fragments = IntermediateInlineFragments::new();
- let node_is_input_or_text_area =
- node.type_id() == Some(LayoutNodeType::Element(LayoutElementType::HTMLInputElement)) ||
- node.type_id() == Some(LayoutNodeType::Element(
+ let node_is_input_or_text_area = node.type_id() ==
+ Some(LayoutNodeType::Element(LayoutElementType::HTMLInputElement)) ||
+ node.type_id() ==
+ Some(LayoutNodeType::Element(
LayoutElementType::HTMLTextAreaElement,
));
if node.get_pseudo_element_type().is_replaced_content() || node_is_input_or_text_area {
// A TextArea's text contents are displayed through the input text
// box, so don't construct them.
- if node.type_id() == Some(LayoutNodeType::Element(
- LayoutElementType::HTMLTextAreaElement,
- )) {
+ if node.type_id() ==
+ Some(LayoutNodeType::Element(
+ LayoutElementType::HTMLTextAreaElement,
+ ))
+ {
for kid in node.children() {
self.set_flow_construction_result(&kid, ConstructionResult::None)
}