mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
a22ebb780d
commit
65854967cf
@ -1602,9 +1602,6 @@ nsIntRegion FilterSupport::PostFilterExtentsForPrimitive(
|
||||
}
|
||||
|
||||
nsIntRegion match(const OpacityAttributes& aOpacity) {
|
||||
if (aOpacity.mOpacity == 0.0f) {
|
||||
return IntRect();
|
||||
}
|
||||
return ResultChangeRegionForPrimitive(mDescription, mInputExtents);
|
||||
}
|
||||
|
||||
|
7
layout/reftests/bugs/1509425-1-ref.html
Normal file
7
layout/reftests/bugs/1509425-1-ref.html
Normal 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>
|
28
layout/reftests/bugs/1509425-1.html
Normal file
28
layout/reftests/bugs/1509425-1.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user