mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
Update nightly rustc.
This commit is contained in:
parent
74f1eb199e
commit
01681e79c4
20 changed files with 33 additions and 28 deletions
|
@ -427,7 +427,7 @@ impl HTMLAnchorElementMethods for HTMLAnchorElement {
|
|||
if url.host().is_none() || url.cannot_be_a_base() || url.scheme() == "file" =>
|
||||
{
|
||||
return;
|
||||
}
|
||||
},
|
||||
None => return,
|
||||
// Step 4.
|
||||
Some(url) => {
|
||||
|
|
|
@ -695,13 +695,13 @@ impl HTMLInputElement {
|
|||
{
|
||||
let intervals_from_base = ((value - step_base) / allowed_value_step).floor();
|
||||
intervals_from_base * allowed_value_step + step_base
|
||||
}
|
||||
},
|
||||
StepDirection::Up =>
|
||||
// step up a fractional step to be on a step multiple
|
||||
{
|
||||
let intervals_from_base = ((value - step_base) / allowed_value_step).ceil();
|
||||
intervals_from_base * allowed_value_step + step_base
|
||||
}
|
||||
},
|
||||
};
|
||||
} else {
|
||||
value = value +
|
||||
|
@ -2371,7 +2371,7 @@ impl VirtualMethods for HTMLInputElement {
|
|||
{
|
||||
self.SetValue(DOMString::from(""))
|
||||
.expect("Failed to set input value on type change to ValueMode::Filename.");
|
||||
}
|
||||
},
|
||||
_ => {},
|
||||
}
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ impl VideoFrameRenderer for MediaFrameRenderer {
|
|||
if let Some(old_image_key) = self.old_frame.take() {
|
||||
updates.push(ImageUpdate::DeleteImage(old_image_key));
|
||||
}
|
||||
}
|
||||
},
|
||||
Some((ref mut image_key, ref mut width, ref mut height)) => {
|
||||
self.old_frame = Some(*image_key);
|
||||
|
||||
|
|
|
@ -2893,13 +2893,13 @@ impl NodeMethods for Node {
|
|||
if !is_equal_processinginstruction(this, node) =>
|
||||
{
|
||||
return false;
|
||||
}
|
||||
},
|
||||
NodeTypeId::CharacterData(CharacterDataTypeId::Text(_)) |
|
||||
NodeTypeId::CharacterData(CharacterDataTypeId::Comment)
|
||||
if !is_equal_characterdata(this, node) =>
|
||||
{
|
||||
return false;
|
||||
}
|
||||
},
|
||||
// Step 4.
|
||||
NodeTypeId::Element(..) if !is_equal_element_attrs(this, node) => return false,
|
||||
NodeTypeId::Attr if !is_equal_attr(this, node) => return false,
|
||||
|
|
|
@ -187,7 +187,7 @@ impl TreeWalkerMethods for TreeWalker {
|
|||
// outside of the tree rooted at the original root.
|
||||
{
|
||||
return Ok(None);
|
||||
}
|
||||
},
|
||||
Some(n) => node = n,
|
||||
}
|
||||
// "5. Filter node and if the return value is FILTER_ACCEPT, then
|
||||
|
@ -319,7 +319,7 @@ impl TreeWalker {
|
|||
if self.is_root_node(&parent) || self.is_current_node(&parent) =>
|
||||
{
|
||||
return Ok(None);
|
||||
}
|
||||
},
|
||||
// "5. Otherwise, set node to parent."
|
||||
Some(parent) => node = parent,
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ impl<'a> Iterator for &'a TreeWalker {
|
|||
// which cannot produce an Err result.
|
||||
{
|
||||
unreachable!()
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ impl URL {
|
|||
return Err(Error::Type(format!("could not parse base: {}", error)));
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
// Step 3.
|
||||
let parsed_url = match ServoUrl::parse_with_base(parsed_base.as_ref(), &url.0) {
|
||||
|
|
|
@ -356,7 +356,7 @@ impl<'a> WebGLValidator for TexImage2DValidator<'a> {
|
|||
{
|
||||
context.webgl_error(InvalidOperation);
|
||||
return Err(TexImageValidationError::InvalidTypeForFormat);
|
||||
}
|
||||
},
|
||||
TexDataType::UnsignedShort565 if format != TexFormat::RGB => {
|
||||
context.webgl_error(InvalidOperation);
|
||||
return Err(TexImageValidationError::InvalidTypeForFormat);
|
||||
|
|
|
@ -1412,7 +1412,7 @@ impl XMLHttpRequest {
|
|||
if has_no_child_nodes {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
},
|
||||
// Step 3
|
||||
_ => {
|
||||
return None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue