aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-07-10 21:14:17 -0700
committerGitHub <noreply@github.com>2016-07-10 21:14:17 -0700
commit2239e827bd0ac4f23f9e15a2b2a79685b0f6d422 (patch)
treeeb7e8009ee375cd422895b7d4b7584699197834c /components/script/dom
parent1ff8d875dddb81c2697e155cc954d106c5433055 (diff)
parent636e63f166c24fd863c8d0d0cc6548ae65ef5e97 (diff)
downloadservo-2239e827bd0ac4f23f9e15a2b2a79685b0f6d422.tar.gz
servo-2239e827bd0ac4f23f9e15a2b2a79685b0f6d422.zip
Auto merge of #12376 - sappharx:master, r=ConnorGBrewster
add Runnable::name() implementation for PlannedNavigation #12333 <!-- Please describe your changes on the following line: --> implements Runnable::name() for PlannedNavigation --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #12333 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because the issue stated no tests were needed <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12376) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/htmlformelement.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs
index 90baba4ebb1..18c30a9d86c 100644
--- a/components/script/dom/htmlformelement.rs
+++ b/components/script/dom/htmlformelement.rs
@@ -936,6 +936,8 @@ struct PlannedNavigation {
}
impl Runnable for PlannedNavigation {
+ fn name(&self) -> &'static str { "PlannedNavigation" }
+
fn handler(self: Box<PlannedNavigation>) {
if self.generation_id == self.form.root().generation_id.get() {
let script_chan = self.script_chan.clone();