Auto merge of #11496 - GuillaumeGomez:range, r=nox

Implement Range::createContextualFragment

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11496)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-06-03 05:32:42 -05:00
commit 51d41c5161
8 changed files with 49 additions and 38 deletions

View file

@ -532,8 +532,8 @@ impl HTMLScriptElement {
is_js
}
pub fn mark_already_started(&self) {
self.already_started.set(true);
pub fn set_already_started(&self, already_started: bool) {
self.already_started.set(already_started);
}
fn dispatch_event(&self,
@ -593,7 +593,7 @@ impl VirtualMethods for HTMLScriptElement {
// https://html.spec.whatwg.org/multipage/#already-started
if self.already_started.get() {
copy.downcast::<HTMLScriptElement>().unwrap().mark_already_started();
copy.downcast::<HTMLScriptElement>().unwrap().set_already_started(true);
}
}
}