mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
parent
84d3b44b86
commit
6ce9cc2a25
23 changed files with 425 additions and 287 deletions
|
|
@ -4119,13 +4119,15 @@ Selection::GetType(int16_t* aType)
|
|||
static inline bool
|
||||
RangeMatchesBeginPoint(nsRange* aRange, nsINode* aNode, int32_t aOffset)
|
||||
{
|
||||
return aRange->GetStartParent() == aNode && aRange->StartOffset() == aOffset;
|
||||
return aRange->GetStartParent() == aNode &&
|
||||
static_cast<int32_t>(aRange->StartOffset()) == aOffset;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
RangeMatchesEndPoint(nsRange* aRange, nsINode* aNode, int32_t aOffset)
|
||||
{
|
||||
return aRange->GetEndParent() == aNode && aRange->EndOffset() == aOffset;
|
||||
return aRange->GetEndParent() == aNode &&
|
||||
static_cast<int32_t>(aRange->EndOffset()) == aOffset;
|
||||
}
|
||||
|
||||
// Selection::EqualsRangeAtPoint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue