Bug 1187851 followup - Fix DEBUG-only code to print name of nsChangeHint_UpdateContainingBlock. No review.
authorL. David Baron <dbaron@dbaron.org>
Mon, 06 Mar 2017 16:10:38 -0800
changeset 494298 12e50efb59fc7f3853bbee3a51aa46b9f078d0f5
parent 494293 f822f46061e19cca1800be27af0a48808f6f2b18
child 494299 2c7a32aa6ef7a7cc33b6e4343ca08466f86d55f6
push id48010
push userasasaki@mozilla.com
push dateTue, 07 Mar 2017 01:10:06 +0000
bugs1187851, 1301500
milestone54.0a1
Bug 1187851 followup - Fix DEBUG-only code to print name of nsChangeHint_UpdateContainingBlock. No review. 48d5d4b398c2 (Bug 1187851 patch 3) renamed this change hint, but didn't fix the code that prints change hints when debugging. This is particularly confusing since 5fd6dd2bdbfa (Bug 1301500) reintroduced a different change hint with that name.
layout/base/RestyleManager.cpp
--- a/layout/base/RestyleManager.cpp
+++ b/layout/base/RestyleManager.cpp
@@ -443,17 +443,17 @@ RestyleManager::ChangeHintToString(nsCha
   bool any = false;
   const char* names[] = {
     "RepaintFrame", "NeedReflow", "ClearAncestorIntrinsics",
     "ClearDescendantIntrinsics", "NeedDirtyReflow", "SyncFrameView",
     "UpdateCursor", "UpdateEffects", "UpdateOpacityLayer",
     "UpdateTransformLayer", "ReconstructFrame", "UpdateOverflow",
     "UpdateSubtreeOverflow", "UpdatePostTransformOverflow",
     "UpdateParentOverflow",
-    "ChildrenOnlyTransform", "RecomputePosition", "AddOrRemoveTransform",
+    "ChildrenOnlyTransform", "RecomputePosition", "UpdateContainingBlock",
     "BorderStyleNoneChange", "UpdateTextPath", "SchedulePaint",
     "NeutralChange", "InvalidateRenderingObservers",
     "ReflowChangesSizeOrPosition", "UpdateComputedBSize",
     "UpdateUsesOpacity", "UpdateBackgroundPosition",
     "AddOrRemoveTransform"
   };
   static_assert(nsChangeHint_AllHints == (1 << ArrayLength(names)) - 1,
                 "Name list doesn't match change hints.");