mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Add some CSS loader debugging for mochitest orange bug 536603.
--HG-- extra : transplant_source : %5D7%FE%04%AE%D9%F2%FA3i%C3S%5B%89%5E%AB%D6%98J%21
This commit is contained in:
parent
6dc59fb57f
commit
8e109000e7
@ -1942,6 +1942,9 @@ CSSLoaderImpl::LoadChildSheet(nsICSSStyleSheet* aParentSheet,
|
||||
// Houston, we have a loop, blow off this child and pretend this never
|
||||
// happened
|
||||
LOG_ERROR((" @import cycle detected, dropping load"));
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
printf("@import cycle detected, dropping load");
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
data = data->mParentData;
|
||||
@ -2247,6 +2250,11 @@ CSSLoaderImpl::Stop()
|
||||
#endif
|
||||
}
|
||||
mPostedEvents.Clear();
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
if (arr.Length() != 0) {
|
||||
printf("nsCSSLoader::Stop: stopping %d loads\n", int(arr.Length()));
|
||||
}
|
||||
#endif
|
||||
|
||||
mDatasToNotifyOn += arr.Length();
|
||||
for (i = 0; i < arr.Length(); ++i) {
|
||||
@ -2330,6 +2338,11 @@ CSSLoaderImpl::StopLoadingSheet(nsIURI* aURL)
|
||||
}
|
||||
mPostedEvents.Clear();
|
||||
|
||||
#ifdef NS_BUILD_REFCNT_LOGGING
|
||||
if (arr.Length() != 0) {
|
||||
printf("nsCSSLoader::StopLoadingSheet: stopping %d loads\n", int(arr.Length()));
|
||||
}
|
||||
#endif
|
||||
mDatasToNotifyOn += arr.Length();
|
||||
for (i = 0; i < arr.Length(); ++i) {
|
||||
--mDatasToNotifyOn;
|
||||
|
Loading…
Reference in New Issue
Block a user