Skip to content

Commit

Permalink
[web] Paragraph.longestLine doesn't need to check for isSingleLine
Browse files Browse the repository at this point in the history
…anymore (flutter#16736)
  • Loading branch information
mdebbar authored Feb 21, 2020
1 parent 136a057 commit afe7968
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/web_ui/lib/src/engine/text/paragraph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,6 @@ class EngineParagraph implements ui.Paragraph {
return maxWidth;
}

// In the single-line case, the longest line is equal to the maximum
// intrinsic width of the paragraph.
if (_measurementResult.isSingleLine) {
return _measurementResult.maxIntrinsicWidth;
}

// If we don't have any line metrics information, there's no way to know the
// longest line in a multi-line paragraph.
return 0.0;
Expand Down

0 comments on commit afe7968

Please sign in to comment.