mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 559499. Don't need to put the children of nsCanvasFrame in a psuedo-stacking-context. r=mats
This commit is contained in:
parent
5454ad4517
commit
60499e8fa3
@ -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 \
|
||||
|
27
layout/base/tests/test_bug559499.html
Normal file
27
layout/base/tests/test_bug559499.html
Normal 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>
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user