mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
/// Overflow does not behave like a normal shorthand. When overflow-x and
|
||||||
// values, they no longer use the shared property name "overflow".
|
/// overflow-y are not of equal values, they no longer use the shared
|
||||||
pub fn overflow_longhands_to_css<'a, W, I>(&self, declarations: I, dest: &mut W) -> fmt::Result
|
/// property name "overflow".
|
||||||
where W: fmt::Write, I: Iterator<Item=&'a PropertyDeclaration> {
|
///
|
||||||
|
/// 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 {
|
match *self {
|
||||||
ShorthandId::Overflow => {
|
ShorthandId::Overflow => {
|
||||||
match shorthands::overflow::LonghandsToSerialize::from_iter(declarations) {
|
match shorthands::overflow::LonghandsToSerialize::from_iter(declarations) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue