Searched refs:line_span (Results 1 – 4 of 4) sorted by relevance
/third_party/flutter/skia/modules/skottie/src/text/ |
D | TextAdapter.cpp | 203 for (const auto& line_span : fMaps.fLinesMap) { in applyAnimators() local 209 for (size_t i = line_span.fOffset; i < line_span.fOffset + line_span.fCount; ++i) { in applyAnimators() 219 this->adjustLineTracking(buf, line_span, line_tracking); in applyAnimators() 246 const TextAnimator::DomainSpan& line_span, in adjustLineTracking() argument 248 SkASSERT(line_span.fCount > 0); in adjustLineTracking() 258 total_tracking -= 0.5f * (buf[line_span.fOffset].props.tracking + in adjustLineTracking() 259 buf[line_span.fOffset + line_span.fCount - 1].props.tracking); in adjustLineTracking() 275 for (size_t i = line_span.fOffset; i < line_span.fOffset + line_span.fCount; ++i) { in adjustLineTracking() 279 const auto track_before = i > line_span.fOffset in adjustLineTracking() 281 track_after = i < line_span.fOffset + line_span.fCount - 1 in adjustLineTracking()
|
/third_party/rust/crates/codespan/codespan-lsp/src/ |
D | lib.rs | 49 let line_span = files.line_range(file_id, line_index).unwrap(); in byte_index_to_position() localVariable 52 .get(line_span.clone()) in byte_index_to_position() 54 given: if line_span.start >= source.len() { in byte_index_to_position() 55 line_span.start in byte_index_to_position() 57 line_span.end in byte_index_to_position() 61 let column = byte_index - line_span.start; in byte_index_to_position() 118 let line_span = files.line_range(file_id, position.line as usize).unwrap(); in position_to_byte_index() localVariable 119 let line_str = source.get(line_span.clone()).unwrap(); in position_to_byte_index() 123 Ok(line_span.start + byte_offset) in position_to_byte_index()
|
/third_party/skia/modules/skottie/src/text/ |
D | TextAdapter.cpp | 577 for (const auto& line_span : fMaps.fLinesMap) { in onSync() local 584 for (size_t i = line_span.fOffset; i < line_span.fOffset + line_span.fCount; ++i) { in onSync() 606 if (&line_span != &fMaps.fLinesMap.front()) { in onSync() 609 line_offset += line_spacing / line_span.fCount; in onSync() 613 this->adjustLineProps(buf, line_span, line_offset, line_tracking); in onSync() 738 const TextAnimator::DomainSpan& line_span, in adjustLineProps() argument 741 SkASSERT(line_span.fCount > 0); in adjustLineProps() 751 total_tracking -= 0.5f * (buf[line_span.fOffset].props.tracking + in adjustLineProps() 752 buf[line_span.fOffset + line_span.fCount - 1].props.tracking); in adjustLineProps() 757 for (size_t i = line_span.fOffset; i < line_span.fOffset + line_span.fCount; ++i) { in adjustLineProps() [all …]
|
/third_party/rust/crates/codespan/codespan/src/ |
D | file.rs | 128 pub fn line_span( in line_span() function 133 self.get(file_id).line_span(line_index.into()) in line_span() 252 let span = self.line_span(id, line_index as u32)?; in line_range() 319 fn line_span(&self, line_index: LineIndex) -> Result<Span, Error> { in line_span() function 421 let line_span = files.line_span(file_id, line).unwrap(); in line_span_sources() localVariable 422 files.source_slice(file_id, line_span).unwrap() in line_span_sources()
|