servo: Merge #14663 - Stylo: implement -moz-orient (from ctjhoa:moz-orient); r=Manishearth
authorCamille TJHOA <camille@contract-live.com>
Wed, 21 Dec 2016 15:29:27 -0800
changeset 340389 12250ac495234018fb9401256fa067783342c11b
parent 340388 f0be16755379c0cb9feabf5c063edcea211ad9a1
child 340390 cc7e2946aa6a88214be37c570a0f7be2dca4371e
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)
reviewersManishearth
servo: Merge #14663 - Stylo: implement -moz-orient (from ctjhoa:moz-orient); r=Manishearth <!-- Please describe your changes on the following line: --> https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-orient ![2016-12-21-213132_1342x870_scrot](https://cloud.githubusercontent.com/assets/1716173/21405334/c6c49cb2-c7c5-11e6-85d7-e10f71c331ef.png) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14198 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because it's a style addition <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 641010eed8b9fde014806c02311cb95f9aa4fb1c
servo/components/style/properties/longhand/box.mako.rs
--- a/servo/components/style/properties/longhand/box.mako.rs
+++ b/servo/components/style/properties/longhand/box.mako.rs
@@ -1554,8 +1554,16 @@
                          products="gecko",
                          animatable=False)}
 
 // Non-standard: https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-binding
 ${helpers.predefined_type("-moz-binding", "UrlOrNone", "Either::Second(None_)",
                           products="gecko",
                           animatable="False",
                           disable_when_testing="True")}
+
+// Non-standard: https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-orient
+${helpers.single_keyword("-moz-orient",
+                          "inline block horizontal vertical",
+                          products="gecko",
+                          gecko_ffi_name="mOrient",
+                          gecko_enum_prefix="StyleOrient",
+                          animatable=False)}