diff options
author | kingdido999 <kingdido999@gmail.com> | 2018-09-05 20:34:01 +0800 |
---|---|---|
committer | kingdido999 <kingdido999@gmail.com> | 2018-09-05 20:34:01 +0800 |
commit | f8d850bf38142eb3c8ea079f56449bd8486f766a (patch) | |
tree | 6cc6c18e25a680955cf59ae8f3b68f44dcfff985 /components/gfx/platform | |
parent | c57c99d9f71c8e1e0e3535ab295b305efae323f3 (diff) | |
download | servo-f8d850bf38142eb3c8ea079f56449bd8486f766a.tar.gz servo-f8d850bf38142eb3c8ea079f56449bd8486f766a.zip |
Fix comments indentation issue in gfx platform
Diffstat (limited to 'components/gfx/platform')
-rw-r--r-- | components/gfx/platform/macos/font.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/gfx/platform/macos/font.rs b/components/gfx/platform/macos/font.rs index 1c18b1c6e51..842c52fd70c 100644 --- a/components/gfx/platform/macos/font.rs +++ b/components/gfx/platform/macos/font.rs @@ -211,8 +211,9 @@ impl FontHandleMethods for FontHandle { fn boldness(&self) -> FontWeight { let normalized = self.ctfont.all_traits().normalized_weight(); // [-1.0, 1.0] - // TODO(emilio): It may make sense to make this range [.01, 10.0], to - // align with css-fonts-4's range of [1, 1000]. + + // TODO(emilio): It may make sense to make this range [.01, 10.0], to + // align with css-fonts-4's range of [1, 1000]. let normalized = if normalized <= 0.0 { 4.0 + normalized * 3.0 // [1.0, 4.0] } else { |