Files
tubestation/layout/inspector/moz.build
Nicolas Chevobbe 8609258f9f Bug 1887638 - [devtools] Add InspectorCSSParser. r=emilio,devtools-reviewers,frontend-codestyle-reviewers,bomsy.
This new InspectorCSSParser makes use of the cssparser crate so DevTools end
up using the same code as the CSS engine.
At the moment, we can't get the token start and end offsets, so we create
a JS wrapper class to compute them in JS. This might be removed if we get
a way to retrieve utf16 position from the cssparser.
The existing lexer xpcshell test is modified so it can run against both js-based
and rust-based lexers.

Differential Revision: https://phabricator.services.mozilla.com/D202909
2024-04-15 17:14:42 +00:00

43 lines
988 B
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.toml"]
MOCHITEST_MANIFESTS += ["tests/mochitest.toml"]
XPIDL_SOURCES += [
"inIDeepTreeWalker.idl",
]
XPIDL_MODULE = "inspector"
EXPORTS.mozilla += [
"ServoStyleRuleMap.h",
]
EXPORTS.mozilla.dom += [
"InspectorCSSParser.h",
"InspectorFontFace.h",
"InspectorUtils.h",
]
UNIFIED_SOURCES += [
"inDeepTreeWalker.cpp",
"inLayoutUtils.cpp",
"InspectorCSSParser.cpp",
"InspectorFontFace.cpp",
"InspectorUtils.cpp",
"ServoStyleRuleMap.cpp",
]
include("/ipc/chromium/chromium-config.mozbuild")
FINAL_LIBRARY = "xul"
LOCAL_INCLUDES += [
"../style",
"/dom/base",
]