mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 700659 - Slay nsHashSets in layout. r=dbaron
This commit is contained in:
parent
e571ad623d
commit
486f2eecb5
@ -42,7 +42,6 @@
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsMemory.h"
|
||||
#include "nsHTMLReflowState.h"
|
||||
#include "nsHashSets.h"
|
||||
#include "nsBlockDebugFlags.h"
|
||||
#include "nsContentErrors.h"
|
||||
|
||||
@ -368,11 +367,11 @@ nsFloatManager::RemoveTrailingRegions(nsIFrame* aFrameList)
|
||||
// floats given were at the end of our list, so we could just search
|
||||
// for the head of aFrameList. (But we can't;
|
||||
// layout/reftests/bugs/421710-1.html crashes.)
|
||||
nsVoidHashSet frameSet;
|
||||
nsTHashtable<nsPtrHashKey<nsIFrame> > frameSet;
|
||||
|
||||
frameSet.Init(1);
|
||||
for (nsIFrame* f = aFrameList; f; f = f->GetNextSibling()) {
|
||||
frameSet.Put(f);
|
||||
frameSet.PutEntry(f);
|
||||
}
|
||||
|
||||
PRUint32 newLength = mFloats.Length();
|
||||
|
Loading…
Reference in New Issue
Block a user