Bug 790183: Don't send SetCursor if the cursor hasn't changed. r=roc

This commit is contained in:
Chris Jones 2012-09-11 21:48:13 -07:00
parent 8127acf9cb
commit da50a68663

View File

@ -475,10 +475,17 @@ PuppetWidget::OnIMESelectionChange(void)
NS_IMETHODIMP
PuppetWidget::SetCursor(nsCursor aCursor)
{
if (mCursor == aCursor) {
return NS_OK;
}
if (!mTabChild ||
!mTabChild->SendSetCursor(aCursor)) {
return NS_ERROR_FAILURE;
}
mCursor = aCursor;
return NS_OK;
}