summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 15:00:01 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 15:00:01 +0200
commit966e69291ae8ca1615b7d9a2d4db28b6532564f5 (patch)
treed1953f145739f0d653fd41c9ac2ebfd6adcfb145
parent7c8c0540db529cffdbcd142af74ea1a8df6be23f (diff)
downloadUXP-966e69291ae8ca1615b7d9a2d4db28b6532564f5.tar
UXP-966e69291ae8ca1615b7d9a2d4db28b6532564f5.tar.gz
UXP-966e69291ae8ca1615b7d9a2d4db28b6532564f5.tar.lz
UXP-966e69291ae8ca1615b7d9a2d4db28b6532564f5.tar.xz
UXP-966e69291ae8ca1615b7d9a2d4db28b6532564f5.zip
Bug 1216885 - Make nsISelectionPrivate not inherit from nsISelection
-rw-r--r--dom/base/nsISelectionPrivate.idl2
-rw-r--r--layout/generic/Selection.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/dom/base/nsISelectionPrivate.idl b/dom/base/nsISelectionPrivate.idl
index 68412885e..049873b28 100644
--- a/dom/base/nsISelectionPrivate.idl
+++ b/dom/base/nsISelectionPrivate.idl
@@ -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;
diff --git a/layout/generic/Selection.h b/layout/generic/Selection.h
index 3d5e334fc..5414d15c1 100644
--- a/layout/generic/Selection.h
+++ b/layout/generic/Selection.h
@@ -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