servo: Merge #12340 - Add name method for Runnable trait in DocumentProgressHandler (from Scorpil:document_progress_handler_runnable_name); r=KiChjang
authorAndrew Savchyn <andrew.savchyn@trademob.com>
Fri, 08 Jul 2016 02:23:16 -0700
changeset 339241 1adb1060e3a30f45f1e710f65c895239c7726bf2
parent 339240 df64ad0ca6ba636c171c48ddd2d50f9b7236010c
child 339242 b3a21401450396975119672f12449ea60fa3e564
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersKiChjang
servo: Merge #12340 - Add name method for Runnable trait in DocumentProgressHandler (from Scorpil:document_progress_handler_runnable_name); r=KiChjang <!-- Please describe your changes on the following line: --> --- <!-- 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 #12335 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it's stated so in issue description. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 2d9d47315f7ecef73f8437ca196e95aa33ce0c05
servo/components/script/dom/document.rs
--- a/servo/components/script/dom/document.rs
+++ b/servo/components/script/dom/document.rs
@@ -2864,16 +2864,18 @@ impl DocumentProgressHandler {
 
         window.reflow(ReflowGoal::ForDisplay,
                       ReflowQueryType::NoQuery,
                       ReflowReason::DocumentLoaded);
     }
 }
 
 impl Runnable for DocumentProgressHandler {
+    fn name(&self) -> &'static str { "DocumentProgressHandler" }
+
     fn handler(self: Box<DocumentProgressHandler>) {
         let document = self.addr.root();
         let window = document.window();
         if window.is_alive() {
             self.set_ready_state_complete();
             self.dispatch_load();
         }
     }