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

@@ -19,6 +19,7 @@
#include "nsAutoPtr.h"
#include "nsFrameManager.h"
#include "nsDisplayList.h"
#include "mozilla/Likely.h"
#ifdef DEBUG
#undef NOISY_PUSHING
@@ -506,7 +507,7 @@ nsInlineFrame::ReflowFrames(nsPresContext* aPresContext,
// This scenario doesn't happen often, but it can happen.
nsIFrame* nextSibling = child->GetNextSibling();
child = child->GetNextInFlow();
if (NS_UNLIKELY(child)) {
if (MOZ_UNLIKELY(child)) {
while (child != nextSibling && nextSibling) {
nextSibling = nextSibling->GetNextSibling();
}