mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
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:
parent
aa078a0780
commit
88f51af3f8
27 changed files with 71 additions and 37 deletions
12
components/style/properties/longhand/xul.mako.rs
Normal file
12
components/style/properties/longhand/xul.mako.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
<%namespace name="helpers" file="/helpers.mako.rs" />
|
||||
<% from data import Method %>
|
||||
|
||||
// Non-standard properties that Gecko uses for XUL elements.
|
||||
<% data.new_style_struct("XUL", inherited=False) %>
|
||||
|
||||
${helpers.single_keyword("-moz-box-align", "stretch start center baseline end", products="gecko",
|
||||
gecko_ffi_name="mBoxAlign", gecko_constant_prefix="NS_STYLE_BOX_ALIGN")}
|
Loading…
Add table
Add a link
Reference in a new issue