Bug 1077687. If we have a pending request to rebuild all style data then do so instead of processing individual restyles. r=roc

This commit is contained in:
Mats Palmgren 2014-11-02 16:47:26 +00:00
Родитель ae26c2e5eb
Коммит 1aceb17cf6
2 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -1529,6 +1529,12 @@ RestyleManager::ProcessPendingRestyles()
NS_PRECONDITION(!nsContentUtils::IsSafeToRunScript(),
"Missing a script blocker!");
if (mRebuildAllStyleData) {
RebuildAllStyleData(nsChangeHint(0), nsRestyleHint(0));
MOZ_ASSERT(mPendingRestyles.Count() == 0);
return;
}
// First do any queued-up frame creation. (We should really
// merge this into the rest of the process, though; see bug 827239.)
mPresContext->FrameConstructor()->CreateNeededFrames();

Просмотреть файл

@ -7,9 +7,9 @@ HTTP(..) == download-2.html download-2-ref.html
HTTP(..) != download-2.html about:blank
random-if(winWidget) HTTP(..) == download-2-big.html download-2-big-otf.html # bug 470713
HTTP(..) != download-2-big-otf.html about:blank
asserts-if(Android,2) skip-if(Android&&AndroidVersion==17) HTTP(..) != download-3-notref.html download-3.html # bug 1019192, bug 936226
HTTP(..) == download-3-ref.html download-3.html
HTTP(..) == fallback-to-system-1.html fallback-to-system-1-ref.html
asserts-if(Android,4-8) skip-if(Android&&AndroidVersion==17) HTTP(..) != download-3-notref.html download-3.html # bug 1019192, bug 936226
asserts-if(Android,0-8) HTTP(..) == download-3-ref.html download-3.html # same bugs as above
asserts-if(Android,0-8) HTTP(..) == fallback-to-system-1.html fallback-to-system-1-ref.html # just delayed assertions from above tests
HTTP(..) == name-override-simple-1.html name-override-simple-1-ref.html
HTTP(..) != name-override-simple-1.html download-1-notref.html
fails HTTP(..) == name-override-1.html name-override-1-ref.html