mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
commit
51d41c5161
8 changed files with 49 additions and 38 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue