Bug 1287308 - part2: remove old NS_STYLE_HINT_NONE constant. r=dbaron
authorJeremy Chen <jeremychen@mozilla.com>
Sun, 17 Jul 2016 22:20:22 +0800
changeset 389160 0d1e96f2ac720f58c3b8aab950716a00a10abc54
parent 389159 78bff0b2ded4a70d0a8ebe88a127f71a9daa861b
child 389161 4879682a027dfc7e77c66b6e81be9e73f0fa8e97
push id23312
push userdmitchell@mozilla.com
push dateMon, 18 Jul 2016 17:58:50 +0000
reviewersdbaron
bugs1287308
milestone50.0a1
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
layout/base/RestyleManager.cpp
layout/base/nsChangeHint.h
--- a/layout/base/RestyleManager.cpp
+++ b/layout/base/RestyleManager.cpp
@@ -5146,17 +5146,17 @@ RestyleManager::ChangeHintToString(nsCha
   }
   if (rest) {
     if (any) {
       result.AppendLiteral(" | ");
     }
     result.AppendPrintf("0x%0x", rest);
   } else {
     if (!any) {
-      result.AppendLiteral("NS_STYLE_HINT_NONE");
+      result.AppendLiteral("nsChangeHint(0)");
     }
   }
   return result;
 }
 
 /* static */ nsCString
 RestyleManager::StructNamesToString(uint32_t aSIDs)
 {
--- a/layout/base/nsChangeHint.h
+++ b/layout/base/nsChangeHint.h
@@ -341,18 +341,16 @@ inline nsChangeHint NS_HintsNotHandledFo
   MOZ_ASSERT(NS_IsHintSubset(result,
                              nsChangeHint_Hints_NotHandledForDescendants),
              "something is inconsistent");
 
   return result;
 }
 
 // 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)
 #define nsChangeHint_AllReflowHints                     \
   nsChangeHint(nsChangeHint_NeedReflow |                \
                nsChangeHint_ReflowChangesSizeOrPosition|\
                nsChangeHint_ClearAncestorIntrinsics |   \
                nsChangeHint_ClearDescendantIntrinsics | \