gecko-dev/servo/components
CYBAI 66f8fa7381 servo: Merge #19752 - style: Use Python's True instead of string for arbitrary Python code in mako (from CYBAI:fix-mako-true); r=nox
As discussion in IRC with @nox and @gootorov , it's more correct to use Python's `True` for `${arbitrary Python code}` in mako.

Following is related IRC logs

```
15:39 nox
As I said, that's because there are 2 ways to invoke the things with Mako.

15:40 nox
${arbitrary Python code} vs <%named_helper ..>...</%named_helper>

15:40 nox
IIRC <%foo bar=True></%foo> is not valid Mako syntax,

15:40 nox
but with bar="True" it is.

15:42 cybai
gootorov: I did meet some issues when moving makos if I set "True" instead of Python's `True`. Thus, like nox mentioned above, it's related to how the code works

15:44 gootorov
nox: Alright, I got it now, thanks. There are a couple ${function} blocks that still use `boxed="True" though. They aren't <%named_helpers>, shouldn't they use Python's True too, then?

15:45 nox
gootorov: I think there is an issue because this specific attribute is also used as a string through other <%helpers>,

15:46 nox
gootorov: Seems like it's not an issue anymore because the boxed attribute is passed to arg_to_bool,

15:46 nox
which either returns the boolean as is or check whether it's a "True" or "False" string.

15:47 nox
gootorov: So indeed, you can probably make those use booleans now.

15:47 gootorov
nox: Okay, got it, thanks for the explanation :)
```

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests

Source-Repo: https://github.com/servo/servo
Source-Revision: 865181b6e676fc9b76447ad5172e275b9861ca5e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 38ac407acec755822447200ce8b056c90ba5ceb1
2018-01-12 10:56:30 -06:00
..
allocator
atoms
bluetooth
bluetooth_traits
canvas servo: Merge #19715 - Update WR (removal of RGB8, which isn't supported on some hardware) (from glennw:update-wr-rgb8); r=emilio 2018-01-07 17:04:54 -06:00
canvas_traits
compositing servo: Merge #19691 - Remove mention of some old issues (from pyfisch:cleanup-issues); r=emilio 2018-01-05 00:25:12 -06:00
config
constellation
debugger
deny_public_fields
devtools
devtools_traits
dom_struct
domobject_derive
fallible
geometry
gfx servo: Merge #19716 - Use a ToLayout trait for converting from style to webrender types (from pyfisch:conversions); r=emilio 2018-01-11 03:41:43 -06:00
gfx_traits servo: Merge #19622 - pretty print tree (from tigercosmos:x2); r=shinglyu 2017-12-25 07:56:42 -06:00
hashglobe servo: Merge #19607 - hashglobe: Dump the requested aligment if out of memory while allocating a table (from BorisChiou:stylo/crash/out_of_memory_alignment); r=emilio 2018-01-01 21:32:59 -06:00
jstraceable_derive
layout servo: Merge #19716 - Use a ToLayout trait for converting from style to webrender types (from pyfisch:conversions); r=emilio 2018-01-11 03:41:43 -06:00
layout_thread servo: Merge #19716 - Use a ToLayout trait for converting from style to webrender types (from pyfisch:conversions); r=emilio 2018-01-11 03:41:43 -06:00
layout_traits
malloc_size_of
malloc_size_of_derive
metrics
msg
net servo: Merge #19715 - Update WR (removal of RGB8, which isn't supported on some hardware) (from glennw:update-wr-rgb8); r=emilio 2018-01-07 17:04:54 -06:00
net_traits
nonzero
profile
profile_traits
rand
range
remutex
script servo: Merge #19683 - Upgrade to rustc 1.24.0-nightly (0a3761e63 2018-01-03) (from servo:rustup); r=jdm 2018-01-10 14:00:32 -06:00
script_layout_interface servo: Merge #19734 - style: Remove some unneeded indirection (from emilio:less-indirection); r=mbrubeck 2018-01-09 23:34:15 -06:00
script_plugins
script_traits servo: Merge #19256 - Paint worklets: Implement timeout for worklet painter threads (from yati-sagade:master); r=asajeffrey 2017-12-22 04:50:16 -06:00
selectors servo: Merge #19747 - style: Add a document state invalidator (from emilio:doc-state-invalidator); r=upsuper 2018-01-12 05:09:04 -06:00
servo
servo_arc
size_of_test
style servo: Merge #19752 - style: Use Python's True instead of string for arbitrary Python code in mako (from CYBAI:fix-mako-true); r=nox 2018-01-12 10:56:30 -06:00
style_derive servo: Merge #19665 - style_derive: Support parse-time aliases (from emilio:derive-parse-alias); r=Manishearth 2017-12-31 03:46:22 -06:00
style_traits
url
webdriver_server
webvr
webvr_traits