1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #include "mozilla/layout/FrameChildList.h"
8 
9 #include "nsIFrame.h"
10 
11 namespace mozilla {
12 namespace layout {
13 
14 #ifdef DEBUG_FRAME_DUMP
ChildListName(FrameChildListID aListID)15 const char* ChildListName(FrameChildListID aListID) {
16   switch (aListID) {
17     case kPrincipalList:
18       return "";
19     case kPopupList:
20       return "PopupList";
21     case kCaptionList:
22       return "CaptionList";
23     case kColGroupList:
24       return "ColGroupList";
25     case kSelectPopupList:
26       return "SelectPopupList";
27     case kAbsoluteList:
28       return "AbsoluteList";
29     case kFixedList:
30       return "FixedList";
31     case kOverflowList:
32       return "OverflowList";
33     case kOverflowContainersList:
34       return "OverflowContainersList";
35     case kExcessOverflowContainersList:
36       return "ExcessOverflowContainersList";
37     case kOverflowOutOfFlowList:
38       return "OverflowOutOfFlowList";
39     case kFloatList:
40       return "FloatList";
41     case kBulletList:
42       return "BulletList";
43     case kPushedFloatsList:
44       return "PushedFloatsList";
45     case kBackdropList:
46       return "BackdropList";
47     case kNoReflowPrincipalList:
48       return "NoReflowPrincipalList";
49   }
50 
51   MOZ_ASSERT_UNREACHABLE("unknown list");
52   return "UNKNOWN_FRAME_CHILD_LIST";
53 }
54 #endif
55 
56 }  // namespace layout
57 }  // namespace mozilla
58