diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-31 23:28:11 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-31 23:28:11 +0100 |
commit | be9ff1d2a3d731be5288c90f84d5bfe2ac98b0c8 (patch) | |
tree | 5de90b3100db992d08bd401419536c8bdb21611a | |
parent | 68476df18e95b3162f4c64471550b21a1a9314e3 (diff) | |
download | servo-be9ff1d2a3d731be5288c90f84d5bfe2ac98b0c8.tar.gz servo-be9ff1d2a3d731be5288c90f84d5bfe2ac98b0c8.zip |
style: Make the comment from #14757 a doc comment.
-rw-r--r-- | components/style/properties/properties.mako.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index ab25f16e87d..9d7247130f2 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -467,10 +467,18 @@ impl ShorthandId { } } - // Overflow does not behave like a normal shorthand. When overflow-x and overflow-y are not of equal - // values, they no longer use the shared property name "overflow". - pub fn overflow_longhands_to_css<'a, W, I>(&self, declarations: I, dest: &mut W) -> fmt::Result - where W: fmt::Write, I: Iterator<Item=&'a PropertyDeclaration> { + /// Overflow does not behave like a normal shorthand. When overflow-x and + /// overflow-y are not of equal values, they no longer use the shared + /// property name "overflow". + /// + /// We use this function as a special-case for that. + pub fn overflow_longhands_to_css<'a, W, I>(&self, + declarations: I, + dest: &mut W) + -> fmt::Result + where W: fmt::Write, + I: Iterator<Item=&'a PropertyDeclaration>, + { match *self { ShorthandId::Overflow => { match shorthands::overflow::LonghandsToSerialize::from_iter(declarations) { |