Bug 1287308 - part2: remove old NS_STYLE_HINT_NONE constant. r=dbaron

Remove NS_STYLE_HINT_NONE definition in nsChangeHint.
Fix related debug log in RestyleManager.

MozReview-Commit-ID: 4pA8u8MQDnv

--HG--
extra : rebase_source : 66bbfa54eb35f1de2318787a610b6e401262b28a
This commit is contained in:
Jeremy Chen 2016-07-17 22:20:22 +08:00
parent 9d8ddf9b2d
commit 3f03fe838d
2 changed files with 1 additions and 3 deletions

View File

@ -5151,7 +5151,7 @@ RestyleManager::ChangeHintToString(nsChangeHint aHint)
result.AppendPrintf("0x%0x", rest);
} else {
if (!any) {
result.AppendLiteral("NS_STYLE_HINT_NONE");
result.AppendLiteral("nsChangeHint(0)");
}
}
return result;

View File

@ -346,8 +346,6 @@ inline nsChangeHint NS_HintsNotHandledForDescendantsIn(nsChangeHint aChangeHint)
}
// Redefine the old NS_STYLE_HINT constants in terms of the new hint structure
#define NS_STYLE_HINT_NONE \
nsChangeHint(0)
#define NS_STYLE_HINT_VISUAL \
nsChangeHint(nsChangeHint_RepaintFrame | nsChangeHint_SyncFrameView | \
nsChangeHint_SchedulePaint)