Bug 1509425 - Undo an optimization that unexpectedly affected hit testing. r=bas

Differential Revision: https://phabricator.services.mozilla.com/D16912

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Markus Stange 2019-01-23 03:53:11 +00:00
parent a22ebb780d
commit 65854967cf
4 changed files with 36 additions and 3 deletions

View File

@ -1602,9 +1602,6 @@ nsIntRegion FilterSupport::PostFilterExtentsForPrimitive(
}
nsIntRegion match(const OpacityAttributes& aOpacity) {
if (aOpacity.mOpacity == 0.0f) {
return IntRect();
}
return ResultChangeRegionForPrimitive(mDescription, mInputExtents);
}

View File

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Reference for bug 1271714: should say PASS</title>
<p>PASS</p>

View File

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Bug 1271714: Hit testing should be able to find the .opacityFilter element</title>
<style type="text/css">
#opacityFilter {
border: 1px solid black;
height: 200px;
width: 200px;
filter: opacity(0);
}
</style>
<p id="output">FAIL</p>
<div id="opacityFilter"></div>
<script>
if (document.elementFromPoint(100, 100).id == "opacityFilter") {
document.getElementById("output").textContent = "PASS";
}
</script>

View File

@ -2108,4 +2108,5 @@ test-pref(layout.css.visited_links_enabled,false) == 1488155.html 1488155-ref.ht
== 1492660-1.html 1492660-1-ref.html
pref(layout.css.supports-selector.enabled,true) == 1499386.html 1499386-ref.html
pref(layout.css.supports-selector.enabled,false) != 1499386.html 1499386-ref.html
== 1509425-1.html 1509425-1-ref.html
== 1511570.html 1511570-ref.html