mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset d1b5408d946f (bug 952087) for Android reftest failures.
CLOSED TREE
This commit is contained in:
parent
96414ab45e
commit
04cc65be92
@ -8821,10 +8821,6 @@ void
|
||||
nsDocument::ScrollToRef()
|
||||
{
|
||||
if (mScrolledToRefAlready) {
|
||||
nsCOMPtr<nsIPresShell> shell = GetShell();
|
||||
if (shell) {
|
||||
shell->ScrollToAnchor();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1025,20 +1025,15 @@ nsDocumentViewer::LoadComplete(nsresult aStatus)
|
||||
}
|
||||
}
|
||||
|
||||
if (!mStopped) {
|
||||
if (mDocument) {
|
||||
mDocument->ScrollToRef();
|
||||
}
|
||||
|
||||
// Now that the document has loaded, we can tell the presshell
|
||||
// to unsuppress painting.
|
||||
// Now that the document has loaded, we can tell the presshell
|
||||
// to unsuppress painting.
|
||||
if (mPresShell && !mStopped) {
|
||||
nsCOMPtr<nsIPresShell> shellDeathGrip(mPresShell);
|
||||
mPresShell->UnsuppressPainting();
|
||||
// mPresShell could have been removed now, see bug 378682/421432
|
||||
if (mPresShell) {
|
||||
nsCOMPtr<nsIPresShell> shellDeathGrip(mPresShell);
|
||||
mPresShell->UnsuppressPainting();
|
||||
// mPresShell could have been removed now, see bug 378682/421432
|
||||
if (mPresShell) {
|
||||
mPresShell->LoadComplete();
|
||||
}
|
||||
mPresShell->ScrollToAnchor();
|
||||
mPresShell->LoadComplete();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
</head>
|
||||
<body style="margin: 0;">
|
||||
<div>
|
||||
<div style="height: 50px; width: 50px; background-color: red;"></div>
|
||||
<div style="height: 1000px;"></div>
|
||||
<div id="d" style="height: 50px; width: 50px; background-color: green;"></div>
|
||||
<div style="height: 1000px;"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,17 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onload = function() {
|
||||
document.body.appendChild(document.importNode(this.responseXML.getElementsByTagName("div")[0], true));
|
||||
};
|
||||
xhr.open("get", "deferred-anchor-ref.html");
|
||||
xhr.responseType = "document";
|
||||
xhr.send();
|
||||
</script>
|
||||
</head>
|
||||
<body style="margin: 0;">
|
||||
</body>
|
||||
</html>
|
@ -1,4 +1,3 @@
|
||||
== deferred-anchor.html#d deferred-anchor-ref.html#d
|
||||
HTTP == fixed-1.html fixed-1.html?ref
|
||||
HTTP == fixed-opacity-1.html fixed-opacity-1.html?ref
|
||||
skip-if(B2G) HTTP == fixed-opacity-2.html fixed-opacity-2.html?ref
|
||||
|
Loading…
Reference in New Issue
Block a user