mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777463: Fix bustage, no r=me
This commit is contained in:
parent
394713c8f5
commit
e7bcc6c1dc
@ -131,10 +131,9 @@ TabChild::Observe(nsISupports *aSubject,
|
||||
nsCOMPtr<nsITabChild> tabChild(GetTabChildFrom(docShell));
|
||||
if (tabChild == this) {
|
||||
gfxRect rect;
|
||||
int numAssigned = sscanf(NS_ConvertUTF16toUTF8(aData).get(),
|
||||
"{\"x\":%lf,\"y\":%lf,\"w\":%lf,\"h\":%lf}",
|
||||
&rect.x, &rect.y, &rect.width, &rect.height);
|
||||
MOZ_ASSERT(numAssigned == 4, "Invalid JSON format");
|
||||
sscanf(NS_ConvertUTF16toUTF8(aData).get(),
|
||||
"{\"x\":%lf,\"y\":%lf,\"w\":%lf,\"h\":%lf}",
|
||||
&rect.x, &rect.y, &rect.width, &rect.height);
|
||||
SendZoomToRect(rect);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user