mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1265280 - Temporary debugging code to crash with a useful abort message. r=khuey
MozReview-Commit-ID: G1XOUcfwY20 --HG-- extra : transplant_source : %3E%09%CFW%F0%7E%EA%3A0%F3AU%B1%89%F8%A0%24%07%86%BC
This commit is contained in:
parent
28a65dfb2e
commit
5036e4c66e
@ -2168,6 +2168,14 @@ static bool IsCSSOrderLEQ(nsDisplayItem* aItem1, nsDisplayItem* aItem2, void*) {
|
||||
|
||||
static bool IsZOrderLEQ(nsDisplayItem* aItem1, nsDisplayItem* aItem2,
|
||||
void* aClosure) {
|
||||
{
|
||||
// TEMPORARY debugging code for bug 1265280
|
||||
nsIFrame* f2 = aItem2->Frame();
|
||||
if (!f2 || !f2->StyleContext()) {
|
||||
NS_RUNTIMEABORT(nsPrintfCString("bad display item %p type %s frame %p",
|
||||
aItem2, aItem2->Name(), f2).get());
|
||||
}
|
||||
}
|
||||
// Note that we can't just take the difference of the two
|
||||
// z-indices here, because that might overflow a 32-bit int.
|
||||
return aItem1->ZIndex() <= aItem2->ZIndex();
|
||||
|
Loading…
Reference in New Issue
Block a user