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 upIframes #3951
Iframes #3951
Conversation
hoppipolla-critic-bot
commented
Nov 10, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/3141 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
@jdm Perhaps you could review this or suggest someone for review? Thanks! |
| use compositor_task::{ShutdownComplete, ChangeRenderState, RenderMsgDiscarded, ScrollTimeout}; | ||
| use compositor_task::{CompositorEventListener, CompositorProxy, CompositorReceiver}; | ||
| use constellation::SendableFrameTree; | ||
| use compositor_task::{ |
This comment has been minimized.
This comment has been minimized.
pcwalton
Nov 10, 2014
Contributor
nit: I usually prefer the above style (that you removed) for imports. The reason is that I can select all the import lines and say :sort in Vim and have it look nice :)
This comment has been minimized.
This comment has been minimized.
mrobinson
Nov 11, 2014
Author
Member
I've been intrigued by this all morning, is there a way to configure vim (which I also use) to sort imports that are inside {} pairs and spread across multiple lines?
This comment has been minimized.
This comment has been minimized.
pcwalton
Nov 11, 2014
Contributor
Not that I know of. I think the right solution is to just have rustfmt do it, once we have that.
| epoch: Epoch(0), | ||
| id: LayerId::null(), | ||
| rect: Rect::zero(), | ||
| background_color: azure_hl::Color::new(0., 0., 0., 0.), |
This comment has been minimized.
This comment has been minimized.
pcwalton
Nov 10, 2014
Contributor
At some point we should have a TRANSPARENT constant for this color.
| @@ -737,21 +750,26 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> { | |||
|
|
|||
| } | |||
|
|
|||
| fn pipeline_is_in_current_frame(&self, pipeline_id: PipelineId) -> bool { | |||
| for current_frame in self.current_frame().iter() { | |||
This comment has been minimized.
This comment has been minimized.
pcwalton
Nov 10, 2014
Contributor
self.current_frame.iter().any(|current_frame| current_frame.contains(pipeline_id))
|
Looks good to me; @jdm should give it a look over too. |
|
Critic'd. I can't comment on the actual correctness of the compositor code, per se, but it looks reasonable to me. |
|
r=me for the compositor parts once @jdm's issues are addressed. |
|
Squash those puppies. |
This better reflects what the message does.
This is a more accurate name for the script pipeline.
|
Okay. Everything is smooshed. I'll move it to bors. |
This comment has been minimized.
This comment has been minimized.
|
r=jdm |
This comment has been minimized.
This comment has been minimized.
|
saw approval from jdm |
This comment has been minimized.
This comment has been minimized.
|
merging mrobinson/servo/iframes = fbb1e0c into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = ccdd291 |
This is the first step to allowing incremental iframe creation and destruction. This should eliminate task failures when an iframe is added to the frame tree lazily via script.
fbb1e0c
into
servo:master
mrobinson commentedNov 10, 2014
This is the first step to allowing incremental iframe creation and destruction. This should eliminate task failures when an iframe is added to the frame tree lazily via script.