diff options
author | Di Xu <xudifsd@gmail.com> | 2016-04-13 19:53:57 +0800 |
---|---|---|
committer | Di Xu <xudifsd@gmail.com> | 2016-04-13 19:56:52 +0800 |
commit | 76f57efb58915f70bb5d71bf0872194019dacb51 (patch) | |
tree | 266f14dd7184e14552a515cbeaf9f81436d8d7ac /components/script/dom/htmliframeelement.rs | |
parent | 9b57d8d686d361c0dfba1056523cbea12abd148b (diff) | |
download | servo-76f57efb58915f70bb5d71bf0872194019dacb51.tar.gz servo-76f57efb58915f70bb5d71bf0872194019dacb51.zip |
replace Fallible<()> with ErrorResult
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index beb3134698f..7273e063e0b 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -367,7 +367,7 @@ impl MozBrowserEventDetailBuilder for HTMLIFrameElement { } } -pub fn Navigate(iframe: &HTMLIFrameElement, direction: NavigationDirection) -> Fallible<()> { +pub fn Navigate(iframe: &HTMLIFrameElement, direction: NavigationDirection) -> ErrorResult { if iframe.Mozbrowser() { if iframe.upcast::<Node>().is_in_doc() { let window = window_from_node(iframe); @@ -468,17 +468,17 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement { } // https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/goBack - fn GoBack(&self) -> Fallible<()> { + fn GoBack(&self) -> ErrorResult { Navigate(self, NavigationDirection::Back) } // https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/goForward - fn GoForward(&self) -> Fallible<()> { + fn GoForward(&self) -> ErrorResult { Navigate(self, NavigationDirection::Forward) } // https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/reload - fn Reload(&self, _hardReload: bool) -> Fallible<()> { + fn Reload(&self, _hardReload: bool) -> ErrorResult { if self.Mozbrowser() { if self.upcast::<Node>().is_in_doc() { self.navigate_or_reload_child_browsing_context(None); @@ -492,7 +492,7 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement { } // https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/stop - fn Stop(&self) -> Fallible<()> { + fn Stop(&self) -> ErrorResult { Err(Error::NotSupported) } |