Skip to content

Commit

Permalink
Bug 1377989 - part4: Rename nsRange::GetParentAndOffsetBefore() to ns…
Browse files Browse the repository at this point in the history
…Range::GetContainerAndOffsetBefore() r=smaug

MozReview-Commit-ID: 5ihlHifgZMt

--HG--
extra : rebase_source : 443c1d1b64c9acbfd7142b79a22b72a7614b91a6
  • Loading branch information
masayuki-nakano committed Jul 11, 2017
1 parent fa5e6a1 commit e54f65d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dom/base/nsRange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ nsRange::SetStartBefore(nsINode& aNode, ErrorResult& aRv)

AutoInvalidateSelection atEndOfBlock(this);
int32_t offset = -1;
nsINode* parent = GetParentAndOffsetBefore(&aNode, &offset);
nsINode* parent = GetContainerAndOffsetBefore(&aNode, &offset);
aRv = SetStart(parent, offset);
}

Expand Down Expand Up @@ -1456,7 +1456,7 @@ nsRange::SetEndBefore(nsINode& aNode, ErrorResult& aRv)

AutoInvalidateSelection atEndOfBlock(this);
int32_t offset = -1;
nsINode* parent = GetParentAndOffsetBefore(&aNode, &offset);
nsINode* parent = GetContainerAndOffsetBefore(&aNode, &offset);
aRv = SetEnd(parent, offset);
}

Expand Down
2 changes: 1 addition & 1 deletion dom/base/nsRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class nsRange final : public nsIDOMRange,
}
return parentNode;
}
static nsINode* GetParentAndOffsetBefore(nsINode* aNode, int32_t* aOffset)
static nsINode* GetContainerAndOffsetBefore(nsINode* aNode, int32_t* aOffset)
{
MOZ_ASSERT(aNode);
MOZ_ASSERT(aOffset);
Expand Down

0 comments on commit e54f65d

Please sign in to comment.