mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-02 20:47:33 +09:00
parent
84d3b44b86
commit
6ce9cc2a25
23 changed files with 425 additions and 287 deletions
|
|
@ -5275,7 +5275,7 @@ EditorBase::GetIMESelectionStartOffsetIn(nsINode* aTextNode)
|
|||
return -1;
|
||||
}
|
||||
|
||||
int32_t minOffset = INT32_MAX;
|
||||
uint32_t minOffset = UINT32_MAX;
|
||||
static const SelectionType kIMESelectionTypes[] = {
|
||||
SelectionType::eIMERawClause,
|
||||
SelectionType::eIMESelectedRawClause,
|
||||
|
|
@ -5295,15 +5295,11 @@ EditorBase::GetIMESelectionStartOffsetIn(nsINode* aTextNode)
|
|||
if (NS_WARN_IF(range->GetStartParent() != aTextNode)) {
|
||||
// ignore the start offset...
|
||||
} else {
|
||||
MOZ_ASSERT(range->StartOffset() >= 0,
|
||||
"start offset shouldn't be negative");
|
||||
minOffset = std::min(minOffset, range->StartOffset());
|
||||
}
|
||||
if (NS_WARN_IF(range->GetEndParent() != aTextNode)) {
|
||||
// ignore the end offset...
|
||||
} else {
|
||||
MOZ_ASSERT(range->EndOffset() >= 0,
|
||||
"start offset shouldn't be negative");
|
||||
minOffset = std::min(minOffset, range->EndOffset());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue