gecko-dev/layout/inspector/moz.build
Xidorn Quan e3c82192cb Bug 1359217 part 6 - Add ServoStyleRuleMap to handle style rule mapping. r=heycam
This commit adds class ServoStyleRuleMap which caches the mapping from
raw Servo style rule to Gecko's wrapper object.

It is a per-document object, and is added as an observer of document
when constructed, so that it updates data inside when possible.

For safety consideration, this change also makes ServoStyleRule support
weak pointer, and use weak pointer inside ServoStyleRuleMap.

MozReview-Commit-ID: YxBnZ88tjf

--HG--
extra : source : 0f2bc306d27b8ab22f1aa08aa9d44af0dba4694d
2017-06-19 15:45:43 +10:00

55 lines
1.2 KiB
Python

# -*- 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/.
if CONFIG['ENABLE_TESTS']:
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']
XPIDL_SOURCES += [
'inICSSValueSearch.idl',
'inIDeepTreeWalker.idl',
'inIDOMUtils.idl',
'inIDOMView.idl',
'inISearchObserver.idl',
'inISearchProcess.idl',
'nsIDOMFontFace.idl',
'nsIDOMFontFaceList.idl',
]
XPIDL_MODULE = 'inspector'
EXPORTS += [
'nsFontFace.h',
'nsFontFaceList.h',
]
EXPORTS.mozilla += [
'ServoStyleRuleMap.h',
]
UNIFIED_SOURCES += [
'inCSSValueSearch.cpp',
'inDeepTreeWalker.cpp',
'inDOMUtils.cpp',
'inLayoutUtils.cpp',
'nsFontFace.cpp',
'nsFontFaceList.cpp',
'ServoStyleRuleMap.cpp',
]
if CONFIG['MOZ_XUL']:
UNIFIED_SOURCES += [
'inDOMView.cpp',
]
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../style',
'/dom/base',
'/dom/xbl',
'/modules/brotli/dec',
]