mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 999162 - Don't set the first-paint flag on a location change on the same document. r=drs
This commit is contained in:
parent
7a5fdadd38
commit
423b602bc0
@ -747,6 +747,7 @@ TabChild::Observe(nsISupports *aSubject,
|
||||
|
||||
if (SameCOMIdentity(subject, doc)) {
|
||||
nsCOMPtr<nsIDOMWindowUtils> utils(GetDOMWindowUtils());
|
||||
utils->SetIsFirstPaint(true);
|
||||
|
||||
mContentDocumentIsDisplayed = true;
|
||||
|
||||
@ -810,9 +811,6 @@ TabChild::OnLocationChange(nsIWebProgress* aWebProgress,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMWindowUtils> utils(do_GetInterface(window));
|
||||
utils->SetIsFirstPaint(true);
|
||||
|
||||
nsCOMPtr<nsIDOMDocument> progressDoc;
|
||||
window->GetDocument(getter_AddRefs(progressDoc));
|
||||
if (!progressDoc) {
|
||||
|
Loading…
Reference in New Issue
Block a user