mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
e3c82192cb
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
55 lines
1.2 KiB
Python
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',
|
|
]
|