mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove extra spaces
Command: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/}\\n\\n\\n/}\\n\\n/"`
This commit is contained in:
parent
552db382d6
commit
7d65673561
23 changed files with 0 additions and 23 deletions
|
@ -85,7 +85,6 @@ pub struct Attr {
|
|||
owner: Option<JS<Element>>,
|
||||
}
|
||||
|
||||
|
||||
impl Attr {
|
||||
fn new_inherited(local_name: Atom, value: AttrValue,
|
||||
name: Atom, namespace: Namespace,
|
||||
|
|
|
@ -64,7 +64,6 @@ impl<'a> CanvasRenderingContext2DMethods for JSRef<'a, CanvasRenderingContext2D>
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#[unsafe_destructor]
|
||||
impl Drop for CanvasRenderingContext2D {
|
||||
fn drop(&mut self) {
|
||||
|
|
|
@ -222,4 +222,3 @@ pub fn create_element(name: QualName, prefix: Option<DOMString>,
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -182,7 +182,6 @@ impl<'a> PrivateDedicatedWorkerGlobalScopeHelpers for JSRef<'a, DedicatedWorkerG
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl DedicatedWorkerGlobalScopeDerived for EventTarget {
|
||||
fn is_dedicatedworkerglobalscope(&self) -> bool {
|
||||
match *self.type_id() {
|
||||
|
|
|
@ -472,7 +472,6 @@ impl Document {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
trait PrivateDocumentHelpers {
|
||||
fn createNodeList(self, callback: |node: JSRef<Node>| -> bool) -> Temporary<NodeList>;
|
||||
fn get_html_element(self) -> Option<Temporary<HTMLHtmlElement>>;
|
||||
|
|
|
@ -83,7 +83,6 @@ impl DOMException {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> {
|
||||
// http://dom.spec.whatwg.org/#dom-domexception-code
|
||||
fn Code(self) -> u16 {
|
||||
|
|
|
@ -47,7 +47,6 @@ impl DOMImplementation {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// http://dom.spec.whatwg.org/#domimplementation
|
||||
impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> {
|
||||
// http://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype
|
||||
|
|
|
@ -40,7 +40,6 @@ impl DOMTokenList {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
trait PrivateDOMTokenListHelpers {
|
||||
fn attribute(self) -> Option<Temporary<Attr>>;
|
||||
fn check_token_exceptions<'a>(self, token: &'a str) -> Fallible<&'a str>;
|
||||
|
|
|
@ -85,7 +85,6 @@ impl ElementDerived for EventTarget {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#[deriving(PartialEq, Show)]
|
||||
#[jstraceable]
|
||||
pub enum ElementTypeId {
|
||||
|
|
|
@ -301,7 +301,6 @@ impl<'a> EventTargetMethods for JSRef<'a, EventTarget> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> VirtualMethods for JSRef<'a, EventTarget> {
|
||||
fn super_type<'a>(&'a self) -> Option<&'a VirtualMethods> {
|
||||
None
|
||||
|
|
|
@ -107,7 +107,6 @@ impl<'a> FormDataMethods for JSRef<'a, FormData> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
trait PrivateFormDataHelpers{
|
||||
fn get_file_from_blob(&self, value: JSRef<Blob>, filename: Option<DOMString>) -> Temporary<File>;
|
||||
}
|
||||
|
|
|
@ -98,7 +98,6 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLAnchorElement> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> HTMLAnchorElementMethods for JSRef<'a, HTMLAnchorElement> {
|
||||
fn Text(self) -> DOMString {
|
||||
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||
|
|
|
@ -389,7 +389,6 @@ impl<'a> HTMLFormElementHelpers for JSRef<'a, HTMLFormElement> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// TODO: add file support
|
||||
pub struct FormDatum {
|
||||
pub ty: DOMString,
|
||||
|
|
|
@ -570,7 +570,6 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLInputElement> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> FormControl<'a> for JSRef<'a, HTMLInputElement> {
|
||||
fn to_element(self) -> JSRef<'a, Element> {
|
||||
ElementCast::from_ref(self)
|
||||
|
|
|
@ -137,7 +137,6 @@ impl<'a> PrivateHTMLLinkElementHelpers for JSRef<'a, HTMLLinkElement> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> HTMLLinkElementMethods for JSRef<'a, HTMLLinkElement> {
|
||||
make_url_getter!(Href)
|
||||
make_setter!(SetHref, "href")
|
||||
|
|
|
@ -57,7 +57,6 @@ impl HTMLTableElement {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> HTMLTableElementMethods for JSRef<'a, HTMLTableElement> {
|
||||
// http://www.whatwg.org/html/#dom-table-caption
|
||||
fn GetCaption(self) -> Option<Temporary<HTMLTableCaptionElement>> {
|
||||
|
|
|
@ -482,7 +482,6 @@ pub trait NodeHelpers<'a> {
|
|||
fn summarize(self) -> NodeInfo;
|
||||
}
|
||||
|
||||
|
||||
impl<'a> NodeHelpers<'a> for JSRef<'a, Node> {
|
||||
/// Dumps the subtree rooted at this node, for debugging.
|
||||
fn dump(self) {
|
||||
|
|
|
@ -119,7 +119,6 @@ impl<'a> TreeWalkerMethods for JSRef<'a, TreeWalker> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
type NodeAdvancer<'a> = |node: JSRef<'a, Node>|: 'a -> Option<Temporary<Node>>;
|
||||
|
||||
trait PrivateTreeWalkerHelpers<'a> {
|
||||
|
|
|
@ -93,7 +93,6 @@ impl<'a> URLSearchParamsMethods for JSRef<'a, URLSearchParams> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
pub trait URLSearchParamsHelpers {
|
||||
fn serialize(&self, encoding: Option<EncodingRef>) -> Vec<u8>;
|
||||
fn update_steps(&self);
|
||||
|
|
|
@ -36,7 +36,6 @@ impl WebSocket {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> WebSocketMethods for JSRef<'a, WebSocket> {
|
||||
fn Url(self) -> DOMString {
|
||||
self.url.clone()
|
||||
|
|
|
@ -182,7 +182,6 @@ pub fn base64_atob(atob: DOMString) -> Fallible<DOMString> {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
impl<'a> WindowMethods for JSRef<'a, Window> {
|
||||
fn Alert(self, s: DOMString) {
|
||||
// Right now, just print to the console
|
||||
|
|
|
@ -240,7 +240,6 @@ impl XMLHttpRequest {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
macro_rules! notify_error_and_return(
|
||||
($err:expr) => ({
|
||||
notify_partial_progress(fetch_type, XHRProgress::Errored(gen_id, $err));
|
||||
|
|
|
@ -43,7 +43,6 @@ impl XMLHttpRequestEventTargetDerived for EventTarget {
|
|||
|
||||
}
|
||||
|
||||
|
||||
impl<'a> XMLHttpRequestEventTargetMethods for JSRef<'a, XMLHttpRequestEventTarget> {
|
||||
event_handler!(loadstart,GetOnloadstart, SetOnloadstart)
|
||||
event_handler!(progress, GetOnprogress, SetOnprogress)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue