Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan

This commit is contained in:
Jacek Szpot
2012-10-26 15:32:10 +02:00
parent a710077c4c
commit 09f9b9a1c3
102 changed files with 534 additions and 452 deletions

View File

@@ -27,6 +27,7 @@
#include "nsIServiceManager.h"
#include "nsDisplayList.h"
#include "nsRenderingContext.h"
#include "mozilla/Likely.h"
using namespace mozilla;
using namespace mozilla::layout;
@@ -613,7 +614,7 @@ nsFieldSetFrame::InsertFrames(ChildListID aListID,
// aFrameList is not allowed to contain "the legend" for this fieldset
ReparentFrameList(aFrameList);
if (NS_UNLIKELY(aPrevFrame == mLegendFrame)) {
if (MOZ_UNLIKELY(aPrevFrame == mLegendFrame)) {
aPrevFrame = nullptr;
}
return mContentFrame->InsertFrames(aListID, aPrevFrame, aFrameList);