mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
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:
commit
2491af84fc
6 changed files with 70 additions and 21 deletions
|
@ -37,3 +37,4 @@ path = "../../components/util"
|
|||
|
||||
[dependencies.style]
|
||||
path = "../../components/style"
|
||||
features = ["gecko"]
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue