Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement the incumbent global. #14936
Conversation
highfive
commented
Jan 10, 2017
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jan 10, 2017
| .map(|entry| Root::from_ref(&*entry.global)) | ||
| }).unwrap() | ||
| } | ||
|
|
||
| /// RAII struct that pushes and pops entries from the script settings stack. | ||
| pub struct AutoIncumbentScript { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ms2ger
Jan 10, 2017
Author
Contributor
There might be a better way to write it; the important thing is that we never dereference the field, we just compare / print the address.
This comment has been minimized.
This comment has been minimized.
|
This implementation makes sense to me. A bit more documentation wouldn't go amiss, however! |
| } | ||
|
|
||
| impl Drop for AutoIncumbentScript { | ||
| /// https://html.spec.whatwg.org/multipage/#clean-up-after-running-a-callback |
This comment has been minimized.
This comment has been minimized.
jdm
Jan 12, 2017
Member
It would be nice to have a comment that explains the relationship of the code to the spec text.
| } | ||
|
|
||
| impl AutoIncumbentScript { | ||
| /// https://html.spec.whatwg.org/multipage/#prepare-to-run-a-callback |
This comment has been minimized.
This comment has been minimized.
jdm
Jan 12, 2017
Member
It would be nice to have a comment that explains the relationship of the code to the spec text.
|
I've added a few step comments; let me know if that's sufficient. |
|
@bors-servo: r+ |
|
|
Implement the incumbent global. Fixes #10963. <!-- 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/14936) <!-- Reviewable:end -->
|
|
|
Grumble. Rebase and we'll try to merge it again! |
|
@bors-servo r=jdm |
|
|
Implement the incumbent global. Fixes #10963. <!-- 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/14936) <!-- Reviewable:end -->
|
|
|
@bors-servo r=jdm Tidy failed. |
|
|
Implement the incumbent global. Fixes #10963. <!-- 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/14936) <!-- Reviewable:end -->
|
|
Ms2ger commentedJan 10, 2017
•
edited by larsbergstrom
Fixes #10963.
This change is