mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
bug 508487. elementFromPoint returns null outside of viewport when aIgnoreRootScrollFrame is true
This commit is contained in:
parent
9679ebfcca
commit
789aea1016
@ -2607,7 +2607,7 @@ nsDocument::ElementFromPointHelper(PRInt32 aX, PRInt32 aY,
|
||||
NS_ENSURE_ARG_POINTER(aReturn);
|
||||
*aReturn = nsnull;
|
||||
// As per the the spec, we return null if either coord is negative
|
||||
if (aX < 0 || aY < 0)
|
||||
if (!aIgnoreRootScrollFrame && (aX < 0 || aY < 0))
|
||||
return NS_OK;
|
||||
|
||||
nscoord x = nsPresContext::CSSPixelsToAppUnits(aX);
|
||||
|
Loading…
x
Reference in New Issue
Block a user