If a mouse event is targeting an iframe, forward it to the iframe's inner window

Fixes #8759.

This adds a slow path for cases where the compositor's layer-based hit testing
is incorrect.  To optimize for this case, we could instead replace the
layer hit testing with display-list hit testing done in the paint task.
This commit is contained in:
Matt Brubeck 2015-12-01 14:22:15 -08:00
parent 8c4fed42b0
commit 9551363bfb
4 changed files with 57 additions and 4 deletions

View file

@ -185,6 +185,11 @@ impl HTMLIFrameElement {
self.containing_page_pipeline_id.get()
}
#[inline]
pub fn pipeline_id(&self) -> Option<PipelineId> {
self.pipeline_id.get()
}
#[inline]
pub fn subpage_id(&self) -> Option<SubpageId> {
self.subpage_id.get()