Add Servo_GetStyleFoo functions to get style structs from GeckoComputedValues.

While we're here we also:

* remove any code conditional on style_struct.gecko_ffi_name, since all
  style structs now do have a corresponding Geckos struct

* add new UIReset and XUL style structs, so that all Gecko structs are
  now present (apart from Variables, which is special)
This commit is contained in:
Cameron McCormack 2016-04-27 11:28:58 +10:00
parent aa078a0780
commit 88f51af3f8
27 changed files with 71 additions and 37 deletions

View file

@ -7,7 +7,7 @@
<% data.new_style_struct("Text",
inherited=False,
gecko_ffi_name="nsStyleTextReset",
gecko_name="TextReset",
additional_methods=[Method("has_underline", "bool"),
Method("has_overline", "bool"),
Method("has_line_through", "bool")]) %>