mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Rustfmt has changed its default style :/
This commit is contained in:
parent
82fc6d9f49
commit
be69f9c3e6
207 changed files with 1200 additions and 1339 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue