dom/console/moz.build
author Timothy Nikkel <tnikkel@gmail.com>
Thu, 16 Mar 2017 03:06:06 -0500
changeset 348004 d4cafcc44babd82e009801f6d453b6002fb280d7
parent 341062 c373084a5a579a5e01cb417fd895761472a7ddae
child 397006 f150d4c7c812afac0aafbb9156340ce63b7a9b9d
permissions -rw-r--r--
Bug 1343341. Only set the animation state as discarded if we discarded the animated frames (and not a static frame from a first-frame-only decode). r=aosmond The SurfaceCache can hold the first frame of a "static" decode as well as the animated frames in two seperate entries. We only care about what happens to the animated frames, so ignore OnSurfaceDiscarded for anything else. To accomplish this we must pass the SurfaceKey to OnSurfaceDiscarded.

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

with Files("**"):
    BUG_COMPONENT = ("Core", "DOM")

XPIDL_SOURCES += [
    'nsIConsoleAPIStorage.idl',
]

XPIDL_MODULE = 'dom'

EXPORTS += [
    'nsIConsoleReportCollector.h',
]

EXPORTS.mozilla += [
    'ConsoleReportCollector.h',
]

EXPORTS.mozilla.dom += [
    'Console.h',
]

UNIFIED_SOURCES += [
    'Console.cpp',
    'ConsoleReportCollector.cpp',
]

EXTRA_COMPONENTS += [
    'ConsoleAPI.manifest',
    'ConsoleAPIStorage.js',
]

LOCAL_INCLUDES += [
    '/docshell/base',
    '/dom/base',
    '/dom/workers',
    '/js/xpconnect/src',
]

MOCHITEST_MANIFESTS += [ 'tests/mochitest.ini' ]
MOCHITEST_CHROME_MANIFESTS += [ 'tests/chrome.ini' ]

FINAL_LIBRARY = 'xul'