зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
211c1cd0c2
Коммит
ee6f1bbfa4
|
@ -1641,7 +1641,8 @@ CanScrollWithBlitting(nsIFrame* aFrame)
|
|||
return false;
|
||||
}
|
||||
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;
|
||||
if (nsLayoutUtils::IsPopup(f))
|
||||
break;
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body onload="doTest()">
|
||||
<iframe src="data:text/html,<body style='font-size:50px'><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, 60);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html class="reftest-wait">
|
||||
<body>
|
||||
<iframe src="data:text/html,<body style='font-size:50px'><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;
|
||||
if (count < 4) {
|
||||
f.contentWindow.scrollTo(0, count*20);
|
||||
setTimeout(doTest, 10);
|
||||
}
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
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-text-1.html fixed-text-1.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
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче