diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2015-12-01 14:22:15 -0800 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-12-03 08:19:41 -0800 |
commit | 9551363bfba695b17c55cc551b87a6c0d16eb6a0 (patch) | |
tree | 9d3f314b0bf1602c1fe28ece5fc3bf6674392cd4 /components/script/dom/htmliframeelement.rs | |
parent | 8c4fed42b0e50f51134dca8f92558c7f4e37c4ab (diff) | |
download | servo-9551363bfba695b17c55cc551b87a6c0d16eb6a0.tar.gz servo-9551363bfba695b17c55cc551b87a6c0d16eb6a0.zip |
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.
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 78400b6d49a..fe07d28a198 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -186,6 +186,11 @@ impl HTMLIFrameElement { } #[inline] + pub fn pipeline_id(&self) -> Option<PipelineId> { + self.pipeline_id.get() + } + + #[inline] pub fn subpage_id(&self) -> Option<SubpageId> { self.subpage_id.get() } |