toolkit/toolkit.mozbuild
author Ting-Yu Lin <tlin@mozilla.com>
Wed, 24 Apr 2019 22:23:59 +0000
changeset 530044 e5029a42a612c56a826a4634425c9f0670e9a111
parent 523874 85bd45178007470651a23a54a416ac9208b1d531
child 530767 f3c896ea6e1693af54eb6515aad514869d68f057
permissions -rw-r--r--
Bug 1546223 Part 5 - Change ReflowInput::InitConstraints() to use Maybe for containing block size. r=dholbert There are some minor behavior changes come with this. 1) Change the default containing block size to (NS_UNCONSTRAINEDSIZE, NS_UNCONSTRAINEDSIZE). I think this is more reasonable than (-1, -1). 2) mContainingBlockSize is used to cache only the block size passing though constructor, Init(), or the invalid (-1, -1). This patch makes it cache the value computed by ComputeContainingBlockRectangle(). Note that mContainingBlockSize is used only in nsTableWrapperFrame::InitChildReflowInput() to set the inner table frame's containing block to be the same as the outer table frame's. We don't change this behavior by caching more. Because even if the inner frame use the invalid cached (-1, -1) containing block size from the outer reflow input, it still computes the block size again in InitConstraints(). (Inner table's cb is the same as the outer table's per InitCBReflowInput().) Differential Revision: https://phabricator.services.mozilla.com/D28586

# -*- 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/.

include('/js/app.mozbuild')

PYTHON_UNITTEST_MANIFESTS += [
    '/layout/tools/reftest/selftest/python.ini',
    '/testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini',
    '/testing/mochitest/tests/python/python.ini',
    '/testing/raptor/test/python.ini',
    '/testing/talos/talos/unittests/python.ini'
]

CONFIGURE_SUBST_FILES += [
    '/tools/update-packaging/Makefile',
]

DIRS += [
    '/tools',
    '/xpcom/xpidl',
]

if CONFIG['COMPILE_ENVIRONMENT']:
    DIRS += [
        '/config/external',
        '/security',
    ]

if CONFIG['ENABLE_TESTS']:
    DIRS += [
        '/toolkit/library/gtest/rust',
    ]

DIRS += [
    '/toolkit/library/rust',
]

if CONFIG['MOZ_SANDBOX']:
    DIRS += ['/security/sandbox']

DIRS += [
    # Depends on NSS and NSPR
    '/security/certverifier',
    # Depends on certverifier
    '/security/apps',
]

# the signing related bits of libmar depend on nss
if CONFIG['MOZ_UPDATER']:
    DIRS += ['/modules/libmar']

DIRS += [
    '/config/external/freetype2',
    '/xpcom',
    '/modules/libpref',
    '/intl',
    '/netwerk',
]

if CONFIG['MOZ_AUTH_EXTENSION']:
    DIRS += ['/extensions/auth']

if CONFIG['MOZ_UPDATER'] and CONFIG['OS_TARGET'] != 'Android':
    DIRS += [
        '/toolkit/mozapps/update/updater/bspatch',
        '/other-licenses/bsdiff',
    ]

# Gecko/Core components.

DIRS += [
    '/ipc',
    '/js/ipc',
    '/hal',
    '/js/xpconnect',
    '/intl/chardet',
    '/modules/libjar',
    '/storage',
]

if CONFIG['COMPILE_ENVIRONMENT']:
    DIRS += [
        '/media/libyuv',
    ]

DIRS += [
    '/extensions/cookie',
    '/extensions/permissions',
]

if CONFIG['MOZ_WEBRTC'] and CONFIG['COMPILE_ENVIRONMENT']:
    DIRS += [
        '/media/webrtc',
        '/media/mtransport',
    ]

if CONFIG['ENABLE_TESTS']:
    DIRS += ['/testing/specialpowers']

DIRS += [
    '/testing/gtest',
    '/uriloader',
    '/caps',
    '/parser',
    '/gfx',
    '/image',
    '/dom',
    '/view',
    '/widget',
    '/editor',
    '/layout',
    '/docshell',
    '/xpfe/appshell'
]

if CONFIG['MOZ_UNIVERSALCHARDET']:
    DIRS += ['/extensions/universalchardet']

if CONFIG['ACCESSIBILITY']:
    DIRS += ['/accessible']
else:
    DIRS += ['/accessible/ipc']

# toolkit

# This must precede xpfe.
if CONFIG['MOZ_JPROF']:
    DIRS += ['/tools/jprof']

DIRS += [
    '/tools/code-coverage',
    '/tools/power',
    '/tools/profiler',
]

if CONFIG['MOZ_SPELLCHECK']:
    DIRS += ['/extensions/spellcheck']

DIRS += [
    '/security/manager',
    '/toolkit',
]

if CONFIG['MOZ_PREF_EXTENSIONS']:
    DIRS += ['/extensions/pref']

DIRS += [
    '/devtools',
    '/toolkit/library',
    '/services',
    '/startupcache',
    '/js/ductwork/debugger',
    '/other-licenses/snappy',
]

if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
    DIRS += [
        '/toolkit/system/gnome',
    ]

if CONFIG['ENABLE_REMOTE_AGENT']:
    DIRS += ['/remote']

if CONFIG['ENABLE_MARIONETTE']:
    DIRS += [
        '/testing/firefox-ui',
        '/testing/marionette',
    ]

if CONFIG['ENABLE_GECKODRIVER'] and not CONFIG['MOZ_TSAN'] and not CONFIG['FUZZING_INTERFACES']:
    DIRS += ['/testing/geckodriver']

DIRS += [
    '/tools/quitter',
    '/media/gmp-clearkey/0.1',
]

if CONFIG['ENABLE_TESTS']:
    DIRS += [
        '/testing/mochitest',
        '/testing/xpcshell',
        '/testing/tools/minidumpwriter',
        '/testing/tools/screenshot',
        '/testing/profiles',
        '/testing/modules',
        '/testing/runtimes',
        '/testing/web-platform',
        '/testing/extensions',
    ]

    # The file id utility requires breakpad libraries.
    if CONFIG['MOZ_CRASHREPORTER']:
        DIRS += ['/testing/tools/fileid']

    if CONFIG['MOZ_MEMORY']:
        DIRS += ['/memory/gtest']

    if CONFIG['MOZ_WEBRTC'] and not CONFIG['MOZ_TASK_TRACER']:
        DIRS += [
            '/media/mtransport/test',
        ]

if CONFIG['FUZZING']:
    DIRS += ['/tools/fuzzing']