Bug 559499. Don't need to put the children of nsCanvasFrame in a psuedo-stacking-context. r=mats

This commit is contained in:
Robert O'Callahan 2010-06-01 11:22:50 +12:00
parent 5454ad4517
commit 60499e8fa3
3 changed files with 29 additions and 2 deletions

View File

@ -104,6 +104,7 @@ _TEST_FILES = \
test_bug514127.html \
test_bug518777.html \
test_bug548545.xhtml \
test_bug559499.html \
test_flush_on_paint.html \
test_mozPaintCount.html \
test_scroll_selection_into_view.html \

View File

@ -0,0 +1,27 @@
<!DOCTYPE HTML>
<html style="background:yellow">
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=559499
-->
<head>
<title>Test for Bug 559499</title>
<script type="application/javascript" src="/MochiKit/packed.js"></script>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body style="position:relative; z-index:-1; padding-top:100px;">
<p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=559499">Mozilla Bug 514127</a></p>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 559499 **/
is(document.elementFromPoint(50, 50), document.body, "Able to hit body");
document.documentElement.style.display = "table";
is(document.elementFromPoint(50, 50), document.body, "Able to hit body (table)");
</script>
</pre>
</body>
</html>

View File

@ -341,8 +341,7 @@ nsCanvasFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
nsIFrame* kid;
for (kid = GetFirstChild(nsnull); kid; kid = kid->GetNextSibling()) {
// Put our child into its own pseudo-stack.
rv = BuildDisplayListForChild(aBuilder, kid, aDirtyRect, aLists,
DISPLAY_CHILD_FORCE_PSEUDO_STACKING_CONTEXT);
rv = BuildDisplayListForChild(aBuilder, kid, aDirtyRect, aLists);
NS_ENSURE_SUCCESS(rv, rv);
}