From acb9fa5812385fc13c402c82fbe2cd4042238fb0 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Tue, 18 Dec 2012 17:30:11 -0500 Subject: [PATCH] bug 828138 - remove nsISelectionPrivate::SetPresShell() r=ehsan --- content/base/public/nsISelectionPrivate.idl | 7 +------ layout/generic/nsSelection.cpp | 8 -------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/content/base/public/nsISelectionPrivate.idl b/content/base/public/nsISelectionPrivate.idl index b85b68bad67..932036e0bfa 100644 --- a/content/base/public/nsISelectionPrivate.idl +++ b/content/base/public/nsISelectionPrivate.idl @@ -16,7 +16,6 @@ interface nsINode; %{C++ class nsFrameSelection; -class nsIPresShell; struct nsTextRangeStyle; struct nsPoint; struct ScrollAxis; @@ -26,14 +25,13 @@ struct ScrollAxis; [ptr] native nsFrameSelection(nsFrameSelection); [ptr] native nsIFrame(nsIFrame); -[ptr] native nsIPresShell(nsIPresShell); [ptr] native RangeArray(nsTArray); [ref] native constTextRangeStyleRef(const nsTextRangeStyle); [ref] native nsPointRef(nsPoint); native nsDirection(nsDirection); native ScrollAxis(nsIPresShell::ScrollAxis); -[scriptable, uuid(3a1a6d3b-3698-4561-ba00-ba648cb2b0d4)] +[scriptable, uuid(2e44b10f-7d6d-4bf4-92e2-f9551d22f422)] interface nsISelectionPrivate : nsISelection { const short ENDOFPRECEDINGLINE=0; @@ -74,9 +72,6 @@ interface nsISelectionPrivate : nsISelection */ long getTableSelectionType(in nsIDOMRange range); - /* Internal utility method to set the pres shell on a newly created selection */ - [noscript] void setPresShell(in nsIPresShell aPresShell); - /* canCacheFrameOffset * Frame Offset cache can be used just during calling nsEditor::EndPlaceHolderTransaction. * EndPlaceHolderTransaction will give rise to reflow/refreshing view/scroll, and call times diff --git a/layout/generic/nsSelection.cpp b/layout/generic/nsSelection.cpp index 453b1029489..4aad0652c34 100644 --- a/layout/generic/nsSelection.cpp +++ b/layout/generic/nsSelection.cpp @@ -3183,14 +3183,6 @@ NS_INTERFACE_MAP_END NS_IMPL_CYCLE_COLLECTING_ADDREF(Selection) NS_IMPL_CYCLE_COLLECTING_RELEASE(Selection) -NS_IMETHODIMP -Selection::SetPresShell(nsIPresShell* aPresShell) -{ - mPresShellWeak = do_GetWeakReference(aPresShell); - return NS_OK; -} - - NS_IMETHODIMP Selection::GetAnchorNode(nsIDOMNode** aAnchorNode)