Bug 454469: prbool issues in content/ r+sr=sicking

This commit is contained in:
Taras Glek 2008-10-14 12:00:08 -07:00
parent 0a9cfb9d96
commit 7616c0d762
2 changed files with 5 additions and 5 deletions

View File

@ -2889,7 +2889,7 @@ nsEventStateManager::PostHandleEvent(nsPresContext* aPresContext,
case MOUSE_SCROLL_N_LINES:
{
DoScrollText(presContext, aTargetFrame, msEvent, msEvent->delta,
(msEvent->scrollFlags & nsMouseScrollEvent::kIsHorizontal),
!!(msEvent->scrollFlags & nsMouseScrollEvent::kIsHorizontal),
eScrollByLine);
}
break;
@ -2897,7 +2897,7 @@ nsEventStateManager::PostHandleEvent(nsPresContext* aPresContext,
case MOUSE_SCROLL_PAGE:
{
DoScrollText(presContext, aTargetFrame, msEvent, msEvent->delta,
(msEvent->scrollFlags & nsMouseScrollEvent::kIsHorizontal),
!!(msEvent->scrollFlags & nsMouseScrollEvent::kIsHorizontal),
eScrollByPage);
}
break;
@ -2905,7 +2905,7 @@ nsEventStateManager::PostHandleEvent(nsPresContext* aPresContext,
case MOUSE_SCROLL_PIXELS:
{
DoScrollText(presContext, aTargetFrame, msEvent, msEvent->delta,
(msEvent->scrollFlags & nsMouseScrollEvent::kIsHorizontal),
!!(msEvent->scrollFlags & nsMouseScrollEvent::kIsHorizontal),
eScrollByPixel);
}
break;

View File

@ -2065,7 +2065,7 @@ HTMLContentSink::OpenBody(const nsIParserNode& aNode)
// insertionPoint is not -1, but this code will try to handle
// those cases too.
PRBool oldUpdates = mUpdatesInNotification;
PRUint32 oldUpdates = mUpdatesInNotification;
mUpdatesInNotification = 0;
if (insertionPoint != -1) {
NotifyInsert(parent, mBody, insertionPoint - 1);
@ -2227,7 +2227,7 @@ HTMLContentSink::OpenFrameset(const nsIParserNode& aNode)
// insertionPoint is not -1, but this code will try to handle
// those cases too.
PRBool oldUpdates = mUpdatesInNotification;
PRUint32 oldUpdates = mUpdatesInNotification;
mUpdatesInNotification = 0;
if (insertionPoint != -1) {
NotifyInsert(parent, mFrameset, insertionPoint - 1);