mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
parent
84d3b44b86
commit
6ce9cc2a25
23 changed files with 425 additions and 287 deletions
|
|
@ -4747,9 +4747,11 @@ PresShell::ClipListToRange(nsDisplayListBuilder *aBuilder,
|
|||
frame->GetOffsets(frameStartOffset, frameEndOffset);
|
||||
|
||||
int32_t hilightStart =
|
||||
atStart ? std::max(aRange->StartOffset(), frameStartOffset) : frameStartOffset;
|
||||
atStart ? std::max(static_cast<int32_t>(aRange->StartOffset()),
|
||||
frameStartOffset) : frameStartOffset;
|
||||
int32_t hilightEnd =
|
||||
atEnd ? std::min(aRange->EndOffset(), frameEndOffset) : frameEndOffset;
|
||||
atEnd ? std::min(static_cast<int32_t>(aRange->EndOffset()),
|
||||
frameEndOffset) : frameEndOffset;
|
||||
if (hilightStart < hilightEnd) {
|
||||
// determine the location of the start and end edges of the range.
|
||||
nsPoint startPoint, endPoint;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue