Bug 1216885 - Make nsISelectionPrivate not inherit from nsISelection

This commit is contained in:
janekptacijarabaci 2018-04-30 15:00:01 +02:00 committed by Roy Tam
commit 5eca87831c
2 changed files with 4 additions and 3 deletions

View file

@ -29,7 +29,7 @@ native nsDirection(nsDirection);
native ScrollAxis(nsIPresShell::ScrollAxis);
[scriptable, builtinclass, uuid(0c9f4f74-ee7e-4fe9-be6b-0ba856368178)]
interface nsISelectionPrivate : nsISelection
interface nsISelectionPrivate : nsISupports
{
const short ENDOFPRECEDINGLINE=0;
const short STARTOFNEXTLINE=1;

View file

@ -51,8 +51,9 @@ struct RangeData
namespace mozilla {
namespace dom {
class Selection final : public nsISelectionPrivate,
class Selection final : public nsISelection,
public nsWrapperCache,
public nsISelectionPrivate,
public nsSupportsWeakReference
{
protected:
@ -63,7 +64,7 @@ public:
explicit Selection(nsFrameSelection *aList);
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(Selection, nsISelectionPrivate)
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_AMBIGUOUS(Selection, nsISelection)
NS_DECL_NSISELECTION
NS_DECL_NSISELECTIONPRIVATE