mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Clean up code a little
This commit is contained in:
parent
1016e273a6
commit
d4b837bba6
1 changed files with 1 additions and 1 deletions
|
@ -57,8 +57,8 @@ pub impl<'self> DisplayItem {
|
|||
let baseline_origin = Point2D(origin.x, origin.y + font.metrics.ascent);
|
||||
font.draw_text_into_context(ctx, new_run, range, baseline_origin, color);
|
||||
if(new_run.underline){
|
||||
//TODO: Use the font metrics to properly position the underline bar
|
||||
let width = self.d().bounds.size.width;
|
||||
let offset = font.metrics.underline_offset;
|
||||
let u_size = font.metrics.underline_size;
|
||||
let u_bounds = Rect(
|
||||
Point2D(baseline_origin.x, baseline_origin.y),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue