Auto merge of #10461 - bholley:per_product, r=SimonSapin

Add some machinery to allow us to disable CSS properties/values per-product

Here's an initial stab at solving the issues @SimonSapin brought up in #10408.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10461)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-08 18:56:43 +05:30
commit 2491af84fc
6 changed files with 70 additions and 21 deletions

View file

@ -37,3 +37,4 @@ path = "../../components/util"
[dependencies.style]
path = "../../components/style"
features = ["gecko"]

View file

@ -59,7 +59,7 @@ from mako.template import Template
from mako import exceptions
try:
style_template = Template(filename=os.environ['STYLE_TEMPLATE'], input_encoding='utf8')
style_template.render()
style_template.render(PRODUCT='gecko')
geckolib_template = Template(filename=os.environ['GECKOLIB_TEMPLATE'], input_encoding='utf8')
output = geckolib_template.render(STYLE_STRUCTS = style_template.module.STYLE_STRUCTS,