Skip to content

Commit

Permalink
Invalidate the ParagraphSkia line metrics caches when redoing layout (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Feb 1, 2022
1 parent 8c4c5cc commit 20de5d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions third_party/txt/src/skia/paragraph_skia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ bool ParagraphSkia::DidExceedMaxLines() {
}

void ParagraphSkia::Layout(double width) {
line_metrics_.reset();
line_metrics_styles_.clear();
paragraph_->layout(width);
}

Expand Down

0 comments on commit 20de5d7

Please sign in to comment.