mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Make the comment from #14757 a doc comment.
This commit is contained in:
parent
68476df18e
commit
be9ff1d2a3
1 changed files with 12 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue