Skip to content

Commit

Permalink
Fix line height for "normal" line-height styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfeenst committed Jun 21, 2013
1 parent cb36464 commit 5038924
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/main/layout/inline.rs
Expand Up @@ -797,8 +797,7 @@ impl InlineFlowData {
let text_bounds = run.metrics_for_range(range).bounding_box;
let em_size = text_bounds.size.height;
let line_height = match cur_box.line_height() {
// use the font's leading for normal
CSSLineHeightNormal => text_box.run.font.metrics.leading,
CSSLineHeightNormal => em_size.scale_by(1.14f),
CSSLineHeightNumber(l) => em_size.scale_by(l),
CSSLineHeightLength(Em(l)) => em_size.scale_by(l),
CSSLineHeightLength(Px(l)) => Au::from_frac_px(l),
Expand Down

0 comments on commit 5038924

Please sign in to comment.