Bug 262760. Do Begin/EndUpdateViewBatch around all reflows and restyling. Also, make the refresh flags in EndUpdateViewBatch mean the same thing as they do in UpdateView. In particular we introduce NS_VMREFRESH_DEFERRED. r+sr=bzbarsky

This commit is contained in:
roc+%cs.cmu.edu 2004-10-09 02:02:04 +00:00
parent 02a2ebdc30
commit c4105c2b87
2 changed files with 2 additions and 12 deletions

View File

@ -1081,12 +1081,7 @@ public:
struct RestyleEvent : public PLEvent {
RestyleEvent(nsCSSFrameConstructor* aConstructor);
~RestyleEvent() { }
void HandleEvent() {
nsCSSFrameConstructor* constructor =
NS_STATIC_CAST(nsCSSFrameConstructor*, owner);
constructor->ProcessPendingRestyles();
constructor->mRestyleEventQueue = nsnull;
}
void HandleEvent();
};
protected:

View File

@ -1081,12 +1081,7 @@ public:
struct RestyleEvent : public PLEvent {
RestyleEvent(nsCSSFrameConstructor* aConstructor);
~RestyleEvent() { }
void HandleEvent() {
nsCSSFrameConstructor* constructor =
NS_STATIC_CAST(nsCSSFrameConstructor*, owner);
constructor->ProcessPendingRestyles();
constructor->mRestyleEventQueue = nsnull;
}
void HandleEvent();
};
protected: