зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1649121: part 48) Rename `MakeEmpty` in `ContentIteratorBase::InitInternal`. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D83951
This commit is contained in:
Родитель
61c722d5cd
Коммит
aee46efef9
|
@ -200,7 +200,7 @@ nsresult ContentIteratorBase::InitInternal(const RawRangeBoundary& aStart,
|
|||
// of a range.
|
||||
|
||||
if (!startIsCharacterData && aStart == aEnd) {
|
||||
MakeEmpty();
|
||||
SetEmpty();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -365,7 +365,7 @@ nsresult ContentIteratorBase::InitInternal(const RawRangeBoundary& aStart,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
void ContentIteratorBase::MakeEmpty() {
|
||||
void ContentIteratorBase::SetEmpty() {
|
||||
mCurNode = nullptr;
|
||||
mFirst = nullptr;
|
||||
mLast = nullptr;
|
||||
|
@ -545,8 +545,8 @@ void ContentIteratorBase::First() {
|
|||
}
|
||||
|
||||
void ContentIteratorBase::Last() {
|
||||
// Note that mLast can be nullptr if MakeEmpty() is called in Init() since
|
||||
// at that time, Init() returns NS_OK.
|
||||
// Note that mLast can be nullptr if SetEmpty() is called in Init()
|
||||
// since at that time, Init() returns NS_OK.
|
||||
if (!mLast) {
|
||||
MOZ_ASSERT(mIsDone);
|
||||
return;
|
||||
|
@ -727,7 +727,7 @@ nsresult ContentSubtreeIterator::InitWithRange() {
|
|||
|
||||
if (!child || startOffset == endOffset) {
|
||||
// Text node, empty container, or collapsed
|
||||
MakeEmpty();
|
||||
SetEmpty();
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
@ -767,7 +767,7 @@ nsresult ContentSubtreeIterator::InitWithRange() {
|
|||
firstCandidate = GetNextSibling(node);
|
||||
|
||||
if (!firstCandidate) {
|
||||
MakeEmpty();
|
||||
SetEmpty();
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
@ -782,7 +782,7 @@ nsresult ContentSubtreeIterator::InitWithRange() {
|
|||
&nodeBefore, &nodeAfter));
|
||||
|
||||
if (nodeBefore || nodeAfter) {
|
||||
MakeEmpty();
|
||||
SetEmpty();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -814,7 +814,7 @@ nsresult ContentSubtreeIterator::InitWithRange() {
|
|||
}
|
||||
|
||||
if (!lastCandidate) {
|
||||
MakeEmpty();
|
||||
SetEmpty();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -827,7 +827,7 @@ nsresult ContentSubtreeIterator::InitWithRange() {
|
|||
&nodeBefore, &nodeAfter));
|
||||
|
||||
if (nodeBefore || nodeAfter) {
|
||||
MakeEmpty();
|
||||
SetEmpty();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ class ContentIteratorBase {
|
|||
nsINode* NextNode(nsINode* aNode);
|
||||
nsINode* PrevNode(nsINode* aNode);
|
||||
|
||||
void MakeEmpty();
|
||||
void SetEmpty();
|
||||
|
||||
nsCOMPtr<nsINode> mCurNode;
|
||||
nsCOMPtr<nsINode> mFirst;
|
||||
|
|
Загрузка…
Ссылка в новой задаче