libtxt: truncate paragraph width to an integer in order to match Blink's behavior (flutter/engine#5962)

See https://github.com/flutter/flutter/issues/18665
This commit is contained in:
Jason Simmons
2018-08-07 13:56:34 -07:00
committed by GitHub
parent 21c7a646ca
commit ee273cef41

View File

@@ -417,7 +417,7 @@ void Paragraph::Layout(double width, bool force) {
}
needs_layout_ = false;
width_ = width;
width_ = floor(width);
if (!ComputeLineBreaks())
return;