Added some debug info to UpdateWidgeDamage , still tryin to track down

the reason for the extra draws I see under Photon.
r=kedl
This commit is contained in:
Jerry.Kirk%Nexwarecorp.com 1999-11-18 12:49:43 +00:00
parent bb1ad0f46e
commit 9e268e3cca

View File

@ -178,6 +178,7 @@ NS_IMETHODIMP nsWidget::Destroy(void)
mEventCallback = nsnull;
RemoveDamagedWidget(mWidget);
PtDestroyWidget( mWidget );
mWidget = nsnull;
if( PR_FALSE == mOnDestroyCalled )
@ -2103,7 +2104,7 @@ void nsWidget::UpdateWidgetDamage()
extent.lr.x = extent.ul.x + temp_rect.width - 1;
extent.lr.y = extent.ul.y + temp_rect.height - 1;
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsWidget::UpdateWidgetDamaged this=<%p> extent=(%d,%d,%d,%d)\n", this, extent.ul.x, extent.ul.y, extent.lr.x, extent.lr.y));
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsWidget::UpdateWidgetDamaged this=<%p> mWidget=<%p> extent=(%d,%d,%d,%d)\n", this, mWidget, extent.ul.x, extent.ul.y, extent.lr.x, extent.lr.y));
PtDamageExtent( mWidget, &extent );
}