зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1620504 - part 22-8: Clean up warnings in HTMLStyleEditor.cpp r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D67130 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0a8bb4194c
Коммит
74a2dd84e9
|
@ -830,11 +830,23 @@ class EditorDOMPointBase final {
|
|||
return mChild == aOther.mChild;
|
||||
}
|
||||
|
||||
template <typename A, typename B>
|
||||
bool operator==(const RangeBoundaryBase<A, B>& aOther) const {
|
||||
// TODO: Optimize this with directly comparing with RangeBoundaryBase
|
||||
// members.
|
||||
return *this == SelfType(aOther);
|
||||
}
|
||||
|
||||
template <typename A, typename B>
|
||||
bool operator!=(const EditorDOMPointBase<A, B>& aOther) const {
|
||||
return !(*this == aOther);
|
||||
}
|
||||
|
||||
template <typename A, typename B>
|
||||
bool operator!=(const RangeBoundaryBase<A, B>& aOther) const {
|
||||
return !(*this == aOther);
|
||||
}
|
||||
|
||||
/**
|
||||
* This operator should be used if API of other modules take RawRangeBoundary,
|
||||
* e.g., methods of Selection and nsRange.
|
||||
|
|
|
@ -4128,8 +4128,15 @@ class HTMLEditor final : public TextEditor,
|
|||
nsAtom* aProperty,
|
||||
nsAtom* aAttribute);
|
||||
|
||||
bool IsAtFrontOfNode(nsINode& aNode, int32_t aOffset);
|
||||
bool IsAtEndOfNode(nsINode& aNode, int32_t aOffset);
|
||||
/**
|
||||
* XXX These methods seem odd and except the only caller,
|
||||
* `PromoteInlineRange()`, cannot use them.
|
||||
*/
|
||||
bool IsStartOfContainerOrBeforeFirstEditableChild(
|
||||
const EditorRawDOMPoint& aPoint) const;
|
||||
bool IsEndOfContainerOrEqualsOrAfterLastEditableChild(
|
||||
const EditorRawDOMPoint& aPoint) const;
|
||||
|
||||
bool IsOnlyAttribute(const Element* aElement, nsAtom* aAttribute);
|
||||
|
||||
/**
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче