mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
Bug 1640276 - Part 10: Mark nsINode as const in IsPointInRange() r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D80176
This commit is contained in:
parent
5dfce22c12
commit
8cf4dcb090
@ -741,7 +741,7 @@ bool nsRange::IsPointComparableToRange(const nsINode& aContainer,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool nsRange::IsPointInRange(nsINode& aContainer, uint32_t aOffset,
|
||||
bool nsRange::IsPointInRange(const nsINode& aContainer, uint32_t aOffset,
|
||||
ErrorResult& aRv) const {
|
||||
uint16_t compareResult = ComparePoint(aContainer, aOffset, aRv);
|
||||
// If the node isn't in the range's document, it clearly isn't in the range.
|
||||
|
@ -225,8 +225,8 @@ class nsRange final : public mozilla::dom::AbstractRange,
|
||||
}
|
||||
void InsertNode(nsINode& aNode, ErrorResult& aErr);
|
||||
bool IntersectsNode(nsINode& aNode, ErrorResult& aRv);
|
||||
bool IsPointInRange(nsINode& aContainer, uint32_t aOffset,
|
||||
ErrorResult& aErr) const;
|
||||
bool IsPointInRange(const nsINode& aContainer, uint32_t aOffset,
|
||||
ErrorResult& aRv) const;
|
||||
void ToString(nsAString& aReturn, ErrorResult& aErr);
|
||||
void Detach();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user