toolkit/moz.build
author Timothy Nikkel <tnikkel@gmail.com>
Mon, 22 Aug 2016 21:15:38 -0500
changeset 352251 85cfd0bd6eb0c321ccfa105f49e2f607d88b79f9
parent 346136 3ec6380fca8207fa199693206a3ca24975bf9833
child 362111 2dca0ba58df6abd5c5f5b260644b3b56f6e7e69b
permissions -rw-r--r--
Bug 1260324. Don't draw garbage to the screen if an image doesn't happen to be decoded. r=seth Layout has been using imgIContainer::IsOpaque to determine if the image will draw opaquely to all pixels it covers, and doing culling based on this. However imgIContainer::IsOpaque doesn't guarantee anything. It only describes if the image, when in a decoded state, has all opaque pixels. So if the image doesn't have fully decoded frames around (because they got discarded) it may not draw opaquely to all of its pixels. So we create a new function that first checks if there is a fully decoded frame.

# -*- Mode: python; 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/.

DIRS += [
    'components',
    'content',
    'forgetaboutsite',
    'identity',
    'locales',
    'modules',
    'mozapps/downloads',
    'mozapps/extensions',
    'mozapps/handling',
    'mozapps/preferences',
    'obsolete',
    'pluginproblem',
    'profile',
    'themes',
]

if CONFIG['MOZ_UPDATER'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
    DIRS += ['mozapps/update']

if CONFIG['MOZ_MAINTENANCE_SERVICE'] or CONFIG['MOZ_UPDATER'] and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
# Including mozapps/update/common-standalone allows the maintenance service
# to be built so the maintenance service can be used for things other than
# updating applications.
    DIRS += [
        'mozapps/update/common-standalone',
    ]

if CONFIG['MOZ_MAINTENANCE_SERVICE']:
    DIRS += [
        'components/maintenanceservice'
    ]

DIRS += ['xre']

if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3'):
    DIRS += ['system/unixproxy']
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
    DIRS += ['system/osxproxy']
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    DIRS += ['system/windowsproxy']
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
    DIRS += ['system/androidproxy']

if CONFIG['MOZ_CRASHREPORTER']:
    DIRS += ['crashreporter']

TEST_HARNESS_FILES.testing.mochitest.browser.toolkit.crashreporter.test.browser += [
    'crashreporter/test/browser/crashreport.sjs',
]

with Files('mozapps/installer/windows/*'):
    BUG_COMPONENT = ('Toolkit', 'NSIS Installer')

with Files('pluginproblem/*'):
    BUG_COMPONENT = ('Core', 'Plug-ins')

with Files('mozapps/preferences/*'):
    BUG_COMPONENT = ('Toolkit', 'Preferences')