Searched refs:runs_ (Results 1 – 7 of 7) sorted by relevance
/third_party/flutter/engine/flutter/third_party/txt/src/txt/ |
D | styled_runs.cc | 30 runs_.swap(other.runs_); in StyledRuns() 35 runs_.swap(other.runs_); in operator =() 41 runs_.swap(other.runs_); in swap() 56 runs_.push_back(IndexedRun{style_index, start, start}); in StartRun() 60 if (runs_.empty()) in EndRunIfNeeded() 62 IndexedRun& run = runs_.back(); in EndRunIfNeeded() 65 runs_.pop_back(); in EndRunIfNeeded() 72 const IndexedRun& run = runs_[index]; in GetRun()
|
D | paragraph_builder_txt.cc | 33 paragraph_style_index_ = runs_.AddStyle(style.GetTextStyle()); in SetParagraphStyle() 34 runs_.StartRun(paragraph_style_index_, text_.size()); in SetParagraphStyle() 38 size_t style_index = runs_.AddStyle(style); in PushStyle() 40 runs_.StartRun(style_index, text_.size()); in PushStyle() 48 runs_.StartRun(PeekStyleIndex(), text_.size()); in Pop() 56 return runs_.GetStyle(PeekStyleIndex()); in PeekStyle() 65 runs_.StartRun(PeekStyleIndex(), text_.size()); in AddPlaceholder() 67 runs_.StartRun(PeekStyleIndex(), text_.size()); in AddPlaceholder() 72 runs_.EndRunIfNeeded(text_.size()); in Build() 75 paragraph->SetText(std::move(text_), std::move(runs_)); in Build()
|
D | styled_runs.h | 59 size_t size() const { return runs_.size(); } in size() 96 std::vector<IndexedRun> runs_; variable
|
D | paragraph_builder_txt.h | 54 StyledRuns runs_; variable
|
D | paragraph_txt.h | 172 StyledRuns runs_; variable
|
D | paragraph_txt.cc | 241 runs_ = std::move(runs); in SetText() 300 while (run_index < runs_.size()) { in ComputeLineBreaks() 301 StyledRuns::Run run = runs_.GetRun(run_index); in ComputeLineBreaks() 438 for (size_t i = 0; i < runs_.size(); ++i) { in ComputeBidiRuns() 439 StyledRuns::Run run = runs_.GetRun(i); in ComputeBidiRuns()
|
/third_party/flutter/engine/flutter/third_party/txt/tests/ |
D | paragraph_unittests.cc | 67 ASSERT_EQ(paragraph->runs_.runs_.size(), 1ull); in TEST_F() 68 ASSERT_EQ(paragraph->runs_.styles_.size(), 2ull); in TEST_F() 69 ASSERT_TRUE(paragraph->runs_.styles_[1].equals(text_style)); in TEST_F() 1143 ASSERT_EQ(paragraph->runs_.runs_.size(), 1ull); in TEST_F() 1144 ASSERT_EQ(paragraph->runs_.styles_.size(), 2ull); in TEST_F() 1145 ASSERT_TRUE(paragraph->runs_.styles_[1].equals(text_style)); in TEST_F() 1235 ASSERT_EQ(paragraph->runs_.runs_.size(), 4ull); in TEST_F() 1236 ASSERT_EQ(paragraph->runs_.styles_.size(), 5ull); in TEST_F() 1237 ASSERT_TRUE(paragraph->runs_.styles_[1].equals(text_style1)); in TEST_F() 1238 ASSERT_TRUE(paragraph->runs_.styles_[2].equals(text_style2)); in TEST_F() [all …]
|