Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

libtxt: truncate paragraph width to an integer in order to match Blink's behavior #5962

Merged
merged 1 commit into from
Aug 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion third_party/txt/src/txt/paragraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void Paragraph::Layout(double width, bool force) {
}
needs_layout_ = false;

width_ = width;
width_ = floor(width);

if (!ComputeLineBreaks())
return;
Expand Down