2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:22 -08:00
|
|
|
# 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 += ['xbl-marquee']
|
|
|
|
TEST_TOOL_DIRS += ['test']
|
2013-03-19 11:47:00 -07:00
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'AnimationCommon.h',
|
|
|
|
'nsAnimationManager.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsComputedDOMStylePropertyList.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsCSSAnonBoxes.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsCSSAnonBoxList.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsCSSFontDescList.h',
|
|
|
|
'nsCSSKeywordList.h',
|
|
|
|
'nsCSSKeywords.h',
|
|
|
|
'nsCSSParser.h',
|
|
|
|
'nsCSSPropAliasList.h',
|
|
|
|
'nsCSSProperty.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsCSSPropList.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsCSSProps.h',
|
|
|
|
'nsCSSPseudoClasses.h',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsCSSPseudoClassList.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsCSSPseudoElementList.h',
|
|
|
|
'nsCSSPseudoElements.h',
|
|
|
|
'nsCSSRuleProcessor.h',
|
2013-12-11 18:09:41 -08:00
|
|
|
'nsCSSScanner.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsCSSStyleSheet.h',
|
|
|
|
'nsCSSValue.h',
|
|
|
|
'nsDOMCSSAttrDeclaration.h',
|
|
|
|
'nsDOMCSSDeclaration.h',
|
|
|
|
'nsDOMCSSRGBColor.h',
|
|
|
|
'nsDOMMediaQueryList.h',
|
|
|
|
'nsICSSDeclaration.h',
|
|
|
|
'nsICSSLoaderObserver.h',
|
|
|
|
'nsICSSPseudoComparator.h',
|
|
|
|
'nsICSSRuleList.h',
|
|
|
|
'nsICSSStyleRuleDOMWrapper.h',
|
|
|
|
'nsIStyleRule.h',
|
|
|
|
'nsIStyleRuleProcessor.h',
|
|
|
|
'nsIStyleSheet.h',
|
|
|
|
'nsLayoutStylesheetCache.h',
|
|
|
|
'nsRuleData.h',
|
|
|
|
'nsRuleNode.h',
|
|
|
|
'nsRuleProcessorData.h',
|
|
|
|
'nsRuleWalker.h',
|
|
|
|
'nsStyleAnimation.h',
|
2013-07-30 17:36:09 -07:00
|
|
|
'nsStyleConsts.h',
|
2013-04-16 12:24:43 -07:00
|
|
|
'nsStyleContext.h',
|
|
|
|
'nsStyleCoord.h',
|
|
|
|
'nsStyleSet.h',
|
|
|
|
'nsStyleStruct.h',
|
|
|
|
'nsStyleStructFwd.h',
|
|
|
|
'nsStyleStructInlines.h',
|
|
|
|
'nsStyleTransformMatrix.h',
|
|
|
|
'nsStyleUtil.h',
|
|
|
|
]
|
|
|
|
|
Bug 773296 - Part 2: Parse CSS variable declarations and store them on Declaration objects. p=ebassi,heycam r=dbaron
Patch co-authored by Emmanuele Bassi <ebassi@gmail.com>
This defines a CSSVariableDeclarations class that holds a set of
variable declarations. This is at the specified value stage, so values
can either be 'initial', 'inherit' or a token stream (which is what you
normally have). The variables are stored in a hash table. Although
it's a bit of a hack, we store 'initial' and 'inherit' using special
string values that can't be valid token streams (we use "!" and ";").
Declaration objects now can have two CSSVariableDeclarations objects
on them, to store normal and !important variable declarations. So that
we keep preserving the order of declarations on the object, we inflate
mOrder to store uint32_ts, where values from eCSSProperty_COUNT onwards
represent custom properties. mVariableOrder stores the names of the
variables corresponding to those entries in mOrder.
We also add a new nsCSSProperty value, eCSSPropertyExtra_variable, which
is used to represent any custom property name.
nsCSSProps::LookupProperty can return this value.
The changes to nsCSSParser are straightforward. Custom properties
are parsed and checked for syntactic validity (e.g. "var(a,)" being
invalid) and stored on the Declaration. We use nsCSSScanner's
recording ability to grab the unparsed CSS string corresponding to
the variable's value.
2013-12-11 18:09:40 -08:00
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'CSSVariableDeclarations.h',
|
|
|
|
]
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'CSS.h',
|
|
|
|
'CSSValue.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.css += [
|
|
|
|
'Declaration.h',
|
|
|
|
'ErrorReporter.h',
|
|
|
|
'GroupRule.h',
|
|
|
|
'ImageLoader.h',
|
|
|
|
'ImportRule.h',
|
|
|
|
'Loader.h',
|
|
|
|
'NameSpaceRule.h',
|
|
|
|
'Rule.h',
|
|
|
|
'StyleRule.h',
|
|
|
|
]
|
|
|
|
|
2013-11-14 18:42:57 -08:00
|
|
|
UNIFIED_SOURCES += [
|
2013-04-23 14:54:15 -07:00
|
|
|
'AnimationCommon.cpp',
|
|
|
|
'CSS.cpp',
|
Bug 773296 - Part 2: Parse CSS variable declarations and store them on Declaration objects. p=ebassi,heycam r=dbaron
Patch co-authored by Emmanuele Bassi <ebassi@gmail.com>
This defines a CSSVariableDeclarations class that holds a set of
variable declarations. This is at the specified value stage, so values
can either be 'initial', 'inherit' or a token stream (which is what you
normally have). The variables are stored in a hash table. Although
it's a bit of a hack, we store 'initial' and 'inherit' using special
string values that can't be valid token streams (we use "!" and ";").
Declaration objects now can have two CSSVariableDeclarations objects
on them, to store normal and !important variable declarations. So that
we keep preserving the order of declarations on the object, we inflate
mOrder to store uint32_ts, where values from eCSSProperty_COUNT onwards
represent custom properties. mVariableOrder stores the names of the
variables corresponding to those entries in mOrder.
We also add a new nsCSSProperty value, eCSSPropertyExtra_variable, which
is used to represent any custom property name.
nsCSSProps::LookupProperty can return this value.
The changes to nsCSSParser are straightforward. Custom properties
are parsed and checked for syntactic validity (e.g. "var(a,)" being
invalid) and stored on the Declaration. We use nsCSSScanner's
recording ability to grab the unparsed CSS string corresponding to
the variable's value.
2013-12-11 18:09:40 -08:00
|
|
|
'CSSVariableDeclarations.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'Declaration.cpp',
|
|
|
|
'ErrorReporter.cpp',
|
|
|
|
'ImageLoader.cpp',
|
|
|
|
'Loader.cpp',
|
|
|
|
'nsAnimationManager.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsComputedDOMStyle.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsCSSAnonBoxes.cpp',
|
|
|
|
'nsCSSDataBlock.cpp',
|
|
|
|
'nsCSSKeywords.cpp',
|
|
|
|
'nsCSSParser.cpp',
|
|
|
|
'nsCSSProps.cpp',
|
|
|
|
'nsCSSPseudoClasses.cpp',
|
|
|
|
'nsCSSPseudoElements.cpp',
|
|
|
|
'nsCSSRules.cpp',
|
|
|
|
'nsCSSScanner.cpp',
|
|
|
|
'nsCSSStyleSheet.cpp',
|
|
|
|
'nsCSSValue.cpp',
|
|
|
|
'nsDOMCSSAttrDeclaration.cpp',
|
|
|
|
'nsDOMCSSDeclaration.cpp',
|
|
|
|
'nsDOMCSSRect.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'nsDOMCSSRGBColor.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'nsDOMCSSValueList.cpp',
|
|
|
|
'nsDOMMediaQueryList.cpp',
|
|
|
|
'nsHTMLCSSStyleSheet.cpp',
|
|
|
|
'nsHTMLStyleSheet.cpp',
|
|
|
|
'nsLayoutStylesheetCache.cpp',
|
|
|
|
'nsMediaFeatures.cpp',
|
|
|
|
'nsNthIndexCache.cpp',
|
|
|
|
'nsROCSSPrimitiveValue.cpp',
|
|
|
|
'nsRuleData.cpp',
|
|
|
|
'nsRuleNode.cpp',
|
|
|
|
'nsStyleAnimation.cpp',
|
|
|
|
'nsStyleContext.cpp',
|
|
|
|
'nsStyleCoord.cpp',
|
|
|
|
'nsStyleSet.cpp',
|
|
|
|
'nsStyleStruct.cpp',
|
|
|
|
'nsStyleTransformMatrix.cpp',
|
|
|
|
'nsStyleUtil.cpp',
|
|
|
|
'nsTransitionManager.cpp',
|
2013-10-23 16:05:43 -07:00
|
|
|
'StyleRule.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
|
|
|
|
2013-11-14 18:42:57 -08:00
|
|
|
# nsCSSRuleProcessor.cpp needs to be built separately because it uses plarena.h.
|
2013-11-23 22:29:24 -08:00
|
|
|
# nsFontFaceLoader.cpp needs to be built separately because it forces NSPR logging.
|
2013-11-14 18:42:57 -08:00
|
|
|
SOURCES += [
|
|
|
|
'nsCSSRuleProcessor.cpp',
|
2013-11-23 22:29:24 -08:00
|
|
|
'nsFontFaceLoader.cpp',
|
2013-11-14 18:42:57 -08:00
|
|
|
]
|
|
|
|
|
2013-08-21 23:55:59 -07:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-08-21 23:56:01 -07:00
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-18 18:47:14 -08:00
|
|
|
FINAL_LIBRARY = 'gklayout'
|
2013-11-28 06:23:10 -08:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../../content/base/src',
|
|
|
|
'../../content/html/content/src',
|
|
|
|
'../../content/xbl/src',
|
|
|
|
'../../content/xul/document/src',
|
|
|
|
'../base',
|
|
|
|
'../generic',
|
2013-12-03 17:06:16 -08:00
|
|
|
'../xul',
|
2013-11-28 06:23:10 -08:00
|
|
|
'/dom/base',
|
|
|
|
]
|