From 2358613f9b6e3f3eee70f1cbfd2af92d3c049475 Mon Sep 17 00:00:00 2001 From: Gary Qian Date: Mon, 19 Jun 2017 17:12:54 -0700 Subject: [PATCH] Remove ParagraphConstriants (flutter/engine#3796) --- DEPS | 2 +- engine/src/flutter/lib/ui/text/paragraph_impl_txt.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/DEPS b/DEPS index e76c0f0459..e4e41cf567 100644 --- a/DEPS +++ b/DEPS @@ -72,7 +72,7 @@ deps = { Var('fuchsia_git') + '/zip' + '@' + '92dc87ca645fe8e9f5151ef6dac86d8311a7222f', 'src/lib/txt': - Var('fuchsia_git') + '/txt' + '@' + 'b44e28c2fd75d7d4b9dcc862bb2c01a090bb53e1', + Var('fuchsia_git') + '/txt' + '@' + '95dc633d881d1b23b88e657bcb2f654459706412', 'src/third_party/gtest': Var('fuchsia_git') + '/third_party/gtest' + '@' + 'c00f82917331efbbd27124b537e4ccc915a02b72', diff --git a/engine/src/flutter/lib/ui/text/paragraph_impl_txt.cc b/engine/src/flutter/lib/ui/text/paragraph_impl_txt.cc index 3ac12e6b3d..083b807a4a 100644 --- a/engine/src/flutter/lib/ui/text/paragraph_impl_txt.cc +++ b/engine/src/flutter/lib/ui/text/paragraph_impl_txt.cc @@ -8,7 +8,6 @@ #include "flutter/lib/ui/text/paragraph.h" #include "flutter/lib/ui/text/paragraph_impl.h" #include "lib/ftl/tasks/task_runner.h" -#include "lib/txt/src/paragraph_constraints.h" namespace blink { @@ -47,7 +46,7 @@ bool ParagraphImplTxt::didExceedMaxLines() { void ParagraphImplTxt::layout(double width) { m_width = width; - m_paragraph->Layout(txt::ParagraphConstraints{width}); + m_paragraph->Layout(width); } void ParagraphImplTxt::paint(Canvas* canvas, double x, double y) {