зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
121eb2b9e5
Коммит
4510fe34c8
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче