Skip to content

Commit

Permalink
Fixing bustage. In time, the C++ standards committee will pay for the…
Browse files Browse the repository at this point in the history
…ir crimes.
  • Loading branch information
roc+%cs.cmu.edu committed Mar 19, 2002
1 parent 91909d1 commit 8ecd6f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions view/src/nsViewManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2536,7 +2536,8 @@ PRBool nsViewManager::CanScrollWithBitBlt(nsView* aView)
BuildDisplayList(aView, r, PR_FALSE, PR_FALSE);
ReapplyClipInstructions(PR_FALSE, fakeClipRect, index);

for (PRInt32 i = 0; i < mDisplayListCount; i++) {
PRInt32 i;
for (i = 0; i < mDisplayListCount; i++) {
DisplayListElement2* element = NS_STATIC_CAST(DisplayListElement2*, mDisplayList.ElementAt(i));
if ((element->mFlags & VIEW_RENDERED) != 0) {
if (IsAncestorOf(aView, element->mView)) {
Expand Down Expand Up @@ -2565,7 +2566,7 @@ PRBool nsViewManager::CanScrollWithBitBlt(nsView* aView)
PRBool anyUnscrolledViews = PR_FALSE;
PRBool anyUnblittableViews = PR_FALSE;

for (PRInt32 i = 0; i < mDisplayListCount; i++) {
for (i = 0; i < mDisplayListCount; i++) {
DisplayListElement2* element = NS_STATIC_CAST(DisplayListElement2*, mDisplayList.ElementAt(i));
if ((element->mFlags & VIEW_RENDERED) != 0) {
if ((element->mFlags & VIEW_ISSCROLLED) == 0 && element->mView != aView) {
Expand Down

0 comments on commit 8ecd6f3

Please sign in to comment.