gecko/layout/base/moz.build
Kartikaya Gupta 04cafb7401 Bug 1178847 - Add a MobileViewportManager to manage setting the CSS viewport on B2G. r=botond,tn
The MobileViewportManager ("MVM") is responsible for setting the CSS viewport on
any of the following events:
- a page is painted for the first time (on the before-first-paint event)
- a meta-viewport tag is added (on the DOMMetaAdded event)
- the full-zoom is changed (on the FullZoomChanged event)
- if the window is resized (ResizeReflow gets called as part of normal layout
  processing, and this will pick up a new CSS viewport from MVM)

If the CSS viewport changes or if it is the initial paint, the MVM additionally
calls SetResolutionAndScaleTo on the presShell to update the displayed zoom.
The APZ code in AsyncPanZoomController::NotifyLayersUpdated already has
corresponding code to accept this updated zoom when the CSS viewport changes.
2015-07-21 10:51:55 -04:00

189 lines
4.6 KiB
Python

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
with Files('ActiveLayerTracker.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('Display*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('FrameLayerBuilder.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('LayerState.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('MaskLayerImageCache.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('PaintTracker.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('nsCSSRendering.*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('nsDisplay*'):
BUG_COMPONENT = ('Core', 'Layout: View Rendering')
with Files('Restyle*'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
with Files('nsStyle*'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
with Files('nsChangeHint.h'):
BUG_COMPONENT = ('Core', 'CSS Parsing and Computation')
with Files('nsBidi*'):
BUG_COMPONENT = ('Core', 'Layout: Text')
XPIDL_SOURCES += [
'nsIStyleSheetService.idl',
]
if CONFIG['MOZ_DEBUG']:
UNIFIED_SOURCES += [
'nsAutoLayoutPhase.cpp',
]
XPIDL_MODULE = 'layout_base'
EXPORTS += [
'ActiveLayerTracker.h',
'CaretAssociationHint.h',
'DisplayItemClip.h',
'DisplayListClipState.h',
'FrameLayerBuilder.h',
'FramePropertyTable.h',
'LayerState.h',
'LayoutLogging.h',
'nsArenaMemoryStats.h',
'nsBidi.h',
'nsBidiPresUtils.h',
'nsCaret.h',
'nsChangeHint.h',
'nsCompatibility.h',
'nsCSSFrameConstructor.h',
'nsDisplayItemTypes.h',
'nsDisplayItemTypesList.h',
'nsDisplayList.h',
'nsDisplayListInvalidation.h',
'nsFrameManager.h',
'nsFrameManagerBase.h',
'nsFrameTraversal.h',
'nsIFrameTraversal.h',
'nsILayoutDebugger.h',
'nsILayoutHistoryState.h',
'nsIPercentBSizeObserver.h',
'nsIPresShell.h',
'nsIReflowCallback.h',
'nsLayoutUtils.h',
'nsPresArena.h',
'nsPresContext.h',
'nsPresState.h',
'nsRefreshDriver.h',
'nsStyleChangeList.h',
'ScrollbarStyles.h',
'StackArena.h',
'Units.h',
'UnitTransforms.h',
'WordMovementType.h',
]
EXPORTS.mozilla += [
'GeometryUtils.h',
'PaintTracker.h',
'RestyleLogging.h',
]
UNIFIED_SOURCES += [
'AccessibleCaret.cpp',
'AccessibleCaretEventHub.cpp',
'AccessibleCaretLogger.cpp',
'AccessibleCaretManager.cpp',
'ActiveLayerTracker.cpp',
'DisplayItemClip.cpp',
'DisplayListClipState.cpp',
'FrameLayerBuilder.cpp',
'FramePropertyTable.cpp',
'GeometryUtils.cpp',
'LayoutLogging.cpp',
'MaskLayerImageCache.cpp',
'MobileViewportManager.cpp',
'nsBidi.cpp',
'nsBidiPresUtils.cpp',
'nsCaret.cpp',
'nsCounterManager.cpp',
'nsCSSColorUtils.cpp',
'nsCSSFrameConstructor.cpp',
'nsCSSRendering.cpp',
'nsCSSRenderingBorders.cpp',
'nsDisplayList.cpp',
'nsDisplayListInvalidation.cpp',
'nsDocumentViewer.cpp',
'nsFrameManager.cpp',
'nsFrameTraversal.cpp',
'nsGenConList.cpp',
'nsLayoutDebugger.cpp',
'nsLayoutHistoryState.cpp',
'nsLayoutUtils.cpp',
'nsPresContext.cpp',
'nsPresShell.cpp',
'nsQuoteList.cpp',
'nsStyleChangeList.cpp',
'nsStyleSheetService.cpp',
'PaintTracker.cpp',
'PositionedEventTargeting.cpp',
'RestyleManager.cpp',
'RestyleTracker.cpp',
'ScrollbarStyles.cpp',
'SelectionCarets.cpp',
'StackArena.cpp',
'TouchCaret.cpp',
'TouchManager.cpp',
'ZoomConstraintsClient.cpp',
]
# nsPresArena.cpp needs to be built separately because it uses plarena.h.
# nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
SOURCES += [
'nsPresArena.cpp',
'nsRefreshDriver.cpp',
]
if CONFIG['ENABLE_TESTS']:
DIRS += ['gtest']
FAIL_ON_WARNINGS = True
include('/ipc/chromium/chromium-config.mozbuild')
LOCAL_INCLUDES += [
'../forms',
'../generic',
'../mathml',
'../printing',
'../style',
'../svg',
'../tables',
'../xul',
'../xul/tree/',
'/docshell/base',
'/dom/base',
'/dom/html',
'/dom/svg',
'/dom/xbl',
'/view',
]
FINAL_LIBRARY = 'xul'
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
BROWSER_CHROME_MANIFESTS += ['tests/browser.ini']
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']