Remove extra spaces in function calls and declarations

This commit is contained in:
Daan Sprenkels 2016-10-30 21:50:57 +01:00
parent 179e11ad8d
commit 66059904b7
7 changed files with 14 additions and 14 deletions

View file

@ -1620,7 +1620,7 @@ impl<ConcreteThreadSafeLayoutNode> NodeUtils for ConcreteThreadSafeLayoutNode
fn construction_result_mut(self, data: &mut PersistentLayoutData) -> &mut ConstructionResult { fn construction_result_mut(self, data: &mut PersistentLayoutData) -> &mut ConstructionResult {
match self.get_pseudo_element_type() { match self.get_pseudo_element_type() {
PseudoElementType::Before(_) => &mut data.before_flow_construction_result, PseudoElementType::Before(_) => &mut data.before_flow_construction_result,
PseudoElementType::After (_) => &mut data.after_flow_construction_result, PseudoElementType::After(_) => &mut data.after_flow_construction_result,
PseudoElementType::DetailsSummary(_) => &mut data.details_summary_flow_construction_result, PseudoElementType::DetailsSummary(_) => &mut data.details_summary_flow_construction_result,
PseudoElementType::DetailsContent(_) => &mut data.details_content_flow_construction_result, PseudoElementType::DetailsContent(_) => &mut data.details_content_flow_construction_result,
PseudoElementType::Normal => &mut data.flow_construction_result, PseudoElementType::Normal => &mut data.flow_construction_result,

View file

@ -162,7 +162,7 @@ pub struct BluetoothManager {
} }
impl BluetoothManager { impl BluetoothManager {
pub fn new (receiver: IpcReceiver<BluetoothMethodMsg>, adapter: Option<BluetoothAdapter>) -> BluetoothManager { pub fn new(receiver: IpcReceiver<BluetoothMethodMsg>, adapter: Option<BluetoothAdapter>) -> BluetoothManager {
BluetoothManager { BluetoothManager {
receiver: receiver, receiver: receiver,
adapter: adapter, adapter: adapter,

View file

@ -94,7 +94,7 @@ impl CORSCache {
} }
/// [Clear the cache](https://fetch.spec.whatwg.org/#concept-cache-clear) /// [Clear the cache](https://fetch.spec.whatwg.org/#concept-cache-clear)
pub fn clear (&mut self, request: &Request) { pub fn clear(&mut self, request: &Request) {
let CORSCache(buf) = self.clone(); let CORSCache(buf) = self.clone();
let new_buf: Vec<CORSCacheEntry> = let new_buf: Vec<CORSCacheEntry> =
buf.into_iter().filter(|e| e.origin == *request.origin.borrow() && buf.into_iter().filter(|e| e.origin == *request.origin.borrow() &&

View file

@ -416,8 +416,8 @@ pub fn Navigate(iframe: &HTMLIFrameElement, direction: TraversalDirection) -> Er
Ok(()) Ok(())
} else { } else {
debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top",
level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"));
Err(Error::NotSupported) Err(Error::NotSupported)
} }
} }
@ -499,8 +499,8 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement {
} }
Ok(()) Ok(())
} else { } else {
debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top",
level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"));
Err(Error::NotSupported) Err(Error::NotSupported)
} }
} }
@ -511,8 +511,8 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement {
self.set_visible(visible); self.set_visible(visible);
Ok(()) Ok(())
} else { } else {
debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top",
level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"));
Err(Error::NotSupported) Err(Error::NotSupported)
} }
} }
@ -522,8 +522,8 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement {
if self.Mozbrowser() { if self.Mozbrowser() {
Ok(self.visibility.get()) Ok(self.visibility.get())
} else { } else {
debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top",
level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"));
Err(Error::NotSupported) Err(Error::NotSupported)
} }
} }

View file

@ -215,7 +215,7 @@ impl TreeWalkerMethods for TreeWalker {
} }
match node.GetFirstChild() { match node.GetFirstChild() {
None => break, None => break,
Some (child) => { Some(child) => {
// "1. Set node to its first child." // "1. Set node to its first child."
node = child; node = child;
// "2. Filter node and set result to the return value." // "2. Filter node and set result to the return value."

View file

@ -525,7 +525,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
// Step 7 // Step 7
self.upload_complete.set(match extracted { self.upload_complete.set(match extracted {
None => true, None => true,
Some (ref e) if e.0.is_empty() => true, Some(ref e) if e.0.is_empty() => true,
_ => false _ => false
}); });
// Step 8 // Step 8

View file

@ -94,7 +94,7 @@ declare_viewport_descriptor! {
} }
trait FromMeta: Sized { trait FromMeta: Sized {
fn from_meta (value: &str) -> Option<Self>; fn from_meta(value: &str) -> Option<Self>;
} }
// ViewportLength is a length | percentage | auto | extend-to-zoom // ViewportLength is a length | percentage | auto | extend-to-zoom