mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Added support for navigating by a delta
This commit is contained in:
parent
80a58cadc5
commit
c0ea1f16a8
5 changed files with 45 additions and 29 deletions
|
@ -468,12 +468,12 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement {
|
|||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/goBack
|
||||
fn GoBack(&self) -> ErrorResult {
|
||||
Navigate(self, NavigationDirection::Back)
|
||||
Navigate(self, NavigationDirection::Back(1))
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/goForward
|
||||
fn GoForward(&self) -> ErrorResult {
|
||||
Navigate(self, NavigationDirection::Forward)
|
||||
Navigate(self, NavigationDirection::Forward(1))
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/reload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue