Commit 35b93ce
committed
Bug 1297480 - Add BindingAlias= for WebIDL attrbutes, use it to slim CSS2Properties down. r=bz
As opposed to Alias attribute, which reuses the JS function object for the property, BindingAlias will only reuse the generated attribute binding implementation, without changing observable behavior. It can be used to reduce amount of generated code, if the attributes are known to behave exactly the same.
This cuts the size of generated CSS2PropertiesBinding.cpp by half, and removes ~100kB of dupicated code from libxul.
MozReview-Commit-ID: G0q8TbaqFdp
--HG--
extra : rebase_source : 87a2a501cc8adb379df1f4563d3696a339abd0fc1 parent 16cb254 commit 35b93ce
File tree
3 files changed
+61
-26
lines changed- dom/bindings
- parser
3 files changed
+61
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2706 | 2706 | | |
2707 | 2707 | | |
2708 | 2708 | | |
2709 | | - | |
2710 | | - | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
2711 | 2718 | | |
2712 | 2719 | | |
2713 | 2720 | | |
| |||
2724 | 2731 | | |
2725 | 2732 | | |
2726 | 2733 | | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
2727 | 2737 | | |
2728 | 2738 | | |
2729 | 2739 | | |
| |||
2791 | 2801 | | |
2792 | 2802 | | |
2793 | 2803 | | |
2794 | | - | |
2795 | | - | |
2796 | | - | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
2797 | 2807 | | |
2798 | 2808 | | |
2799 | 2809 | | |
2800 | 2810 | | |
2801 | 2811 | | |
2802 | 2812 | | |
2803 | | - | |
| 2813 | + | |
2804 | 2814 | | |
2805 | 2815 | | |
2806 | 2816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
1184 | 1200 | | |
1185 | 1201 | | |
1186 | 1202 | | |
| |||
1293 | 1309 | | |
1294 | 1310 | | |
1295 | 1311 | | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1305 | 1321 | | |
1306 | 1322 | | |
1307 | 1323 | | |
| |||
3581 | 3597 | | |
3582 | 3598 | | |
3583 | 3599 | | |
| 3600 | + | |
| 3601 | + | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
3584 | 3605 | | |
3585 | 3606 | | |
3586 | 3607 | | |
| |||
4011 | 4032 | | |
4012 | 4033 | | |
4013 | 4034 | | |
| 4035 | + | |
4014 | 4036 | | |
4015 | 4037 | | |
4016 | 4038 | | |
| |||
4155 | 4177 | | |
4156 | 4178 | | |
4157 | 4179 | | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
4158 | 4185 | | |
4159 | 4186 | | |
4160 | 4187 | | |
| |||
0 commit comments