servo: Merge #11002 - Support text-transform in geckolib (from heycam:text-transform); r=bholley
authorCameron McCormack <cam@mcc.id.au>
Thu, 05 May 2016 11:03:54 -0700
changeset 338721 df2d6fdb1fc38551aa6856cb396e6532fa41aeeb
parent 338720 395b89ffb40e4d9b655b13e32bd4b1c5167bce2b
child 338722 a2101857be005300ca0759f26f4d4dfd0b89f277
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbholley
servo: Merge #11002 - Support text-transform in geckolib (from heycam:text-transform); r=bholley Needs https://bugzilla.mozilla.org/show_bug.cgi?id=1270001. I just edited gecko_style_structs.rs manually. Source-Repo: https://github.com/servo/servo Source-Revision: 52adcf38acc805e42d12df0b1962583b4670848e
servo/ports/geckolib/gecko_style_structs.rs
servo/ports/geckolib/properties.mako.rs
--- a/servo/ports/geckolib/gecko_style_structs.rs
+++ b/servo/ports/geckolib/gecko_style_structs.rs
@@ -569,17 +569,17 @@ pub const NS_STYLE_TEXT_DECORATION_STYLE
 pub const NS_STYLE_TEXT_DECORATION_STYLE_WAVY: ::std::os::raw::c_uint = 5;
 pub const NS_STYLE_TEXT_OVERFLOW_CLIP: ::std::os::raw::c_uint = 0;
 pub const NS_STYLE_TEXT_OVERFLOW_ELLIPSIS: ::std::os::raw::c_uint = 1;
 pub const NS_STYLE_TEXT_OVERFLOW_STRING: ::std::os::raw::c_uint = 2;
 pub const NS_STYLE_TEXT_TRANSFORM_NONE: ::std::os::raw::c_uint = 0;
 pub const NS_STYLE_TEXT_TRANSFORM_CAPITALIZE: ::std::os::raw::c_uint = 1;
 pub const NS_STYLE_TEXT_TRANSFORM_LOWERCASE: ::std::os::raw::c_uint = 2;
 pub const NS_STYLE_TEXT_TRANSFORM_UPPERCASE: ::std::os::raw::c_uint = 3;
-pub const NS_STYLE_TEXT_TRANSFORM_FULLWIDTH: ::std::os::raw::c_uint = 4;
+pub const NS_STYLE_TEXT_TRANSFORM_FULL_WIDTH: ::std::os::raw::c_uint = 4;
 pub const NS_STYLE_TOP_LAYER_NONE: ::std::os::raw::c_uint = 0;
 pub const NS_STYLE_TOP_LAYER_TOP: ::std::os::raw::c_uint = 1;
 pub const NS_STYLE_TRANSFORM_BOX_BORDER_BOX: ::std::os::raw::c_uint = 0;
 pub const NS_STYLE_TRANSFORM_BOX_FILL_BOX: ::std::os::raw::c_uint = 1;
 pub const NS_STYLE_TRANSFORM_BOX_VIEW_BOX: ::std::os::raw::c_uint = 2;
 pub const NS_STYLE_TRANSITION_TIMING_FUNCTION_EASE: ::std::os::raw::c_uint =
     0;
 pub const NS_STYLE_TRANSITION_TIMING_FUNCTION_LINEAR: ::std::os::raw::c_uint =
--- a/servo/ports/geckolib/properties.mako.rs
+++ b/servo/ports/geckolib/properties.mako.rs
@@ -348,18 +348,16 @@ impl Debug for ${style_struct.gecko_ffi_
    # These live in nsStyleImageLayers in gecko. Need to figure out what to do about that.
    force_stub += ["background-repeat", "background-attachment", "background-clip", "background-origin"];
    # These live in an nsFont member in Gecko. Should be straightforward to do manually.
    force_stub += ["font-kerning", "font-stretch", "font-style", "font-variant"]
    # These have unusual representations in gecko.
    force_stub += ["list-style-type", "text-overflow"]
    # Enum class instead of NS_STYLE_...
    force_stub += ["box-sizing"]
-   # Inconsistent constant naming in gecko
-   force_stub += ["text-transform"]
    # These are booleans.
    force_stub += ["page-break-after", "page-break-before"]
 
    # Types used with predefined_type()-defined properties that we can auto-generate.
    predefined_types = {
        "LengthOrPercentage": impl_style_coord,
        "LengthOrPercentageOrAuto": impl_style_coord,
        "LengthOrPercentageOrNone": impl_style_coord,