aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/macros.rs
diff options
context:
space:
mode:
authorCYBAI <cyb.ai.815@gmail.com>2017-11-15 00:32:19 +0800
committerCYBAI <cyb.ai.815@gmail.com>2017-11-15 21:27:12 +0800
commitc110c8a131d5f67ea0fefcecf54e0670db3df5f4 (patch)
treed0955b14ed4703bc4c2cd2a6dd0069d25efca66f /components/style/macros.rs
parentc18417db5ef967a9766411f07517691621462599 (diff)
downloadservo-c110c8a131d5f67ea0fefcecf54e0670db3df5f4.tar.gz
servo-c110c8a131d5f67ea0fefcecf54e0670db3df5f4.zip
style: Move font-variant-east-asian outside of mako
Diffstat (limited to 'components/style/macros.rs')
-rw-r--r--components/style/macros.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/style/macros.rs b/components/style/macros.rs
index 200fd61a8c4..3a36fabf104 100644
--- a/components/style/macros.rs
+++ b/components/style/macros.rs
@@ -4,6 +4,16 @@
//! Various macro helpers.
+macro_rules! exclusive_value {
+ (($value:ident, $set:expr) => $ident:path) => {
+ if $value.intersects($set) {
+ return Err(())
+ } else {
+ $ident
+ }
+ }
+}
+
macro_rules! trivial_to_computed_value {
($name:ty) => {
impl $crate::values::computed::ToComputedValue for $name {