1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
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/.
7 with Files("Restyle*"):
8 BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
10 with Files("nsStyle*"):
11 BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
13 with Files("nsChangeHint.h"):
14 BUG_COMPONENT = ("Core", "CSS Parsing and Computation")
16 with Files("nsBidi*"):
17 BUG_COMPONENT = ("Core", "Layout: Text and Fonts")
19 with Files("AccessibleCaret*"):
20 BUG_COMPONENT = ("Core", "DOM: Selection")
23 "nsILayoutHistoryState.idl",
24 "nsIPreloadedStyleSheet.idl",
25 "nsIStyleSheetService.idl",
28 if CONFIG["MOZ_DEBUG"]:
30 "nsAutoLayoutPhase.cpp",
33 XPIDL_MODULE = "layout_base"
36 "CaretAssociationHint.h",
40 "MobileViewportManager.h",
41 "nsAutoLayoutPhase.h",
48 "nsCSSFrameConstructor.h",
52 "nsIFrameTraversal.h",
53 "nsIPercentBSizeObserver.h",
54 "nsIReflowCallback.h",
57 "nsPresArenaObjectList.h",
59 "nsPresContextInlines.h",
62 "nsRefreshObservers.h",
63 "nsStyleChangeList.h",
64 "nsStyleSheetService.h",
70 "ZoomConstraintsClient.h",
74 "AccessibleCaretEventHub.h",
79 "MediaEmulationData.h",
82 "OverflowChangedTracker.h",
83 "PositionedEventTargeting.h",
85 "PresShellForwards.h",
93 "SurfaceFromElementResult.h",
97 EXPORTS.mozilla.layout += [
98 "LayoutTelemetryTools.h",
102 "AccessibleCaret.cpp",
103 "AccessibleCaretEventHub.cpp",
104 "AccessibleCaretManager.cpp",
105 "DisplayPortUtils.cpp",
106 "GeckoMVMContext.cpp",
109 "LayoutTelemetryTools.cpp",
110 "MobileViewportManager.cpp",
111 "MotionPathUtils.cpp",
113 "nsBidiPresUtils.cpp",
115 "nsCounterManager.cpp",
116 "nsCSSColorUtils.cpp",
117 "nsCSSFrameConstructor.cpp",
118 "nsDocumentViewer.cpp",
119 "nsFrameManager.cpp",
120 "nsFrameTraversal.cpp",
122 "nsLayoutDebugger.cpp",
123 "nsLayoutHistoryState.cpp",
128 "nsRefreshObservers.cpp",
129 "nsStyleChangeList.cpp",
130 "nsStyleSheetService.cpp",
131 "PositionedEventTargeting.cpp",
133 "RestyleManager.cpp",
137 "StaticPresData.cpp",
140 "ZoomConstraintsClient.cpp",
143 # nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
145 "nsRefreshDriver.cpp",
148 if CONFIG["ENABLE_TESTS"]:
151 include("/ipc/chromium/chromium-config.mozbuild")
171 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
180 FINAL_LIBRARY = "xul"
182 BROWSER_CHROME_MANIFESTS += ["tests/browser.ini"]
183 MARIONETTE_LAYOUT_MANIFESTS += ["tests/marionette/manifest.ini"]
184 MOCHITEST_MANIFESTS += ["tests/mochitest.ini"]
185 MOCHITEST_CHROME_MANIFESTS += ["tests/chrome/chrome.ini"]
187 if CONFIG["CC_TYPE"] in ("clang", "gcc"):
188 CXXFLAGS += ["-Wno-error=shadow"]