mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 697215. CanScrollWithBitBlit needs to return true for scrollframes inside replaced elements (i.e., iframes) that are honoring border-radius. r=mats
This commit is contained in:
parent
5ee72b9fe5
commit
bdcd0d61d6
@ -1641,7 +1641,8 @@ CanScrollWithBlitting(nsIFrame* aFrame)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
nsIScrollableFrame* sf = do_QueryFrame(f);
|
nsIScrollableFrame* sf = do_QueryFrame(f);
|
||||||
if (sf && nsLayoutUtils::HasNonZeroCorner(f->GetStyleBorder()->mBorderRadius))
|
if ((sf || f->IsFrameOfType(nsIFrame::eReplaced)) &&
|
||||||
|
nsLayoutUtils::HasNonZeroCorner(f->GetStyleBorder()->mBorderRadius))
|
||||||
return false;
|
return false;
|
||||||
if (nsLayoutUtils::IsPopup(f))
|
if (nsLayoutUtils::IsPopup(f))
|
||||||
break;
|
break;
|
||||||
|
13
layout/reftests/scrolling/iframe-border-radius-ref.html
Normal file
13
layout/reftests/scrolling/iframe-border-radius-ref.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<body onload="doTest()">
|
||||||
|
<iframe src="data:text/html,<body style='font-size:100px'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
|
||||||
|
id="f" style="width:500px; height:500px; border-radius:100px;"></iframe>
|
||||||
|
<script>
|
||||||
|
var f = document.getElementById("f");
|
||||||
|
function doTest() {
|
||||||
|
f.contentWindow.scrollTo(0, 80);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
21
layout/reftests/scrolling/iframe-border-radius.html
Normal file
21
layout/reftests/scrolling/iframe-border-radius.html
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html class="reftest-wait">
|
||||||
|
<body>
|
||||||
|
<iframe src="data:text/html,<body style='font-size:100px'><p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty<p>Hello<p>Kitty"
|
||||||
|
id="f" style="width:500px; height:500px; border-radius:100px;"></iframe>
|
||||||
|
<script>
|
||||||
|
var f = document.getElementById("f");
|
||||||
|
var count = 0;
|
||||||
|
function doTest() {
|
||||||
|
++count;
|
||||||
|
f.contentWindow.scrollTo(0, count*20);
|
||||||
|
if (count == 4) {
|
||||||
|
document.documentElement.removeAttribute("class");
|
||||||
|
} else {
|
||||||
|
setTimeout(doTest, 20);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -3,6 +3,7 @@ HTTP == fixed-opacity-1.html fixed-opacity-1.html?ref
|
|||||||
HTTP == fixed-opacity-2.html fixed-opacity-2.html?ref
|
HTTP == fixed-opacity-2.html fixed-opacity-2.html?ref
|
||||||
HTTP == fixed-text-1.html fixed-text-1.html?ref
|
HTTP == fixed-text-1.html fixed-text-1.html?ref
|
||||||
HTTP == fixed-text-2.html fixed-text-2.html?ref
|
HTTP == fixed-text-2.html fixed-text-2.html?ref
|
||||||
|
== iframe-border-radius.html iframe-border-radius-ref.html
|
||||||
HTTP == opacity-mixed-scrolling-1.html opacity-mixed-scrolling-1.html?ref
|
HTTP == opacity-mixed-scrolling-1.html opacity-mixed-scrolling-1.html?ref
|
||||||
random-if(cocoaWidget) HTTP == opacity-mixed-scrolling-2.html opacity-mixed-scrolling-2.html?ref # see bug 625357
|
random-if(cocoaWidget) HTTP == opacity-mixed-scrolling-2.html opacity-mixed-scrolling-2.html?ref # see bug 625357
|
||||||
HTTP == simple-1.html simple-1.html?ref
|
HTTP == simple-1.html simple-1.html?ref
|
||||||
|
Loading…
Reference in New Issue
Block a user