servo/components
bors-servo 4413290de1
Auto merge of #21713 - mandreyel:track-focused-browsing-context, r=cbrewster
Update Constellation to track focused BrowsingContext instead of Pipeline

<!-- Please describe your changes on the following line: -->
I need confirmation as to whether I understand this correctly, but I don't think tracking the focused browsing context instead of the pipeline introduces the benefits described in the issue, because if the focused browsing context is an iframe nested in a document that is being changed, we need to change focus to the browsing context whose current document is being changed, i.e. above the currently focused iframe. Is this correct?

However, I think we may be able to save the slightly expensive iteration over a frame tree (which is needed to check if the currently focused browsing context is nested within the one where the page is being loaded) when the [EDIT] focused browsing is the top-level browsing context, as in this case the load doesn't change the focus. I haven't implemented this as I'm unsure whether this is correct.

---
<!-- 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 #15507 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because because no new behaviour was introduced.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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/21713)
<!-- Reviewable:end -->
2018-09-30 17:48:04 -04:00
..
allocator Format component allocator #21373 2018-08-16 15:44:54 +08:00
atoms Add rtl and ltr as static atoms. 2018-09-03 12:56:22 +02:00
bluetooth Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
bluetooth_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
canvas Remove Canvas2dMsg::DrawImageSelf 2018-09-17 16:24:01 +02:00
canvas_traits Remove Canvas2dMsg::DrawImageSelf 2018-09-17 16:24:01 +02:00
channel add servo_channel crate 2018-09-12 11:25:45 +08:00
compositing Auto merge of #21688 - paulrouget:rm-clipboard, r=jdm 2018-09-13 03:08:53 -04:00
config Format components config #21373 2018-09-02 08:27:07 +08:00
constellation Update Constellation to track focused BrowsingContext instead of Pipeline 2018-09-28 15:01:21 +02:00
debugger Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
deny_public_fields Format components debugger and deny_public_fields #21373 2018-09-01 09:44:53 +08:00
devtools Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
devtools_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
dom_struct Format components dom_struct, domobject_derive and embedder_traits #21373 2018-09-03 08:19:25 +08:00
domobject_derive Format components dom_struct, domobject_derive and embedder_traits #21373 2018-09-03 08:19:25 +08:00
embedder_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
fallible Partially revert #21746. 2018-09-22 18:51:42 +02:00
geometry Move malloc_size_of_derive to proper position 2018-09-04 11:29:38 +08:00
gfx This updates the smallvec crate and enables the union feature 2018-09-19 07:16:30 +02:00
gfx_traits Format gfx_traits #21373 2018-09-09 10:11:08 +08:00
hashglobe Format hashglobe #21373 2018-09-09 10:14:36 +08:00
jstraceable_derive Format jstraceable_derive #21373 2018-09-10 11:03:38 +08:00
layout Auto merge of #21608 - pyfisch:border-gradients, r=emilio 2018-09-28 16:36:53 -04:00
layout_thread Fix Servo build. 2018-09-18 11:52:39 +02:00
layout_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
malloc_size_of Partially revert #21746. 2018-09-22 18:51:42 +02:00
malloc_size_of_derive Rustfmt malloc_size_of & derive 2018-09-05 10:32:44 +02:00
metrics Auto merge of #21325 - gterzian:crossbeam_integration, r=SimonSapin,jdm 2018-09-12 13:33:45 -04:00
msg Format msg #21373 2018-09-11 15:04:55 +08:00
net Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
net_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
profile Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
profile_traits Add support for IpcBytesReceiver in profile_traits::ipc - #21704 2018-09-20 21:36:34 -04:00
rand Bump env_logger to 0.5 and log to 0.4 in every servo crate 2018-03-28 19:50:58 +02:00
range format components/range using rustfmt 2018-09-12 12:32:31 +05:30
remutex format components/remutex 2018-09-12 12:37:11 +05:30
script Auto merge of #21506 - ferjm:webaudio.wpts, r=Manishearth 2018-09-25 13:21:37 -04:00
script_layout_interface Auto merge of #21687 - AnshulMalik:format-script_layout, r=jdm 2018-09-13 08:28:01 -04:00
script_plugins Format components/script_plugins 2018-09-13 01:01:35 +09:00
script_traits Create ScriptMsg::GetBrowsingContextInfo 2018-09-14 00:23:49 +02:00
selectors Partially revert #21746. 2018-09-22 18:51:42 +02:00
servo Auto merge of #21688 - paulrouget:rm-clipboard, r=jdm 2018-09-13 03:08:53 -04:00
servo_arc Fix tidy issues. 2018-09-18 11:46:01 +02:00
size_of_test Format component size_of_test 2018-09-10 21:31:38 +09:00
style Auto merge of #21789 - mbrubeck:deps, r=nox 2018-09-23 05:32:17 -04:00
style_derive style: Teach ComputeSquaredDistance derive about #[animation(constant)]. 2018-09-15 17:56:41 +02:00
style_traits Format component of style_traits 2018-09-08 13:28:13 +09:00
url Format component of url 2018-09-05 22:53:03 +09:00
webdriver_server Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
webvr Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00
webvr_traits Replace mpsc with crossbeam/servo channel, update ipc-channel 2018-09-12 13:33:32 +08:00