зеркало из https://github.com/mozilla/gecko-dev.git
bug 227313 patch by Ludovic Hirlimann <qa-mozilla@hirlimann.net> r+sr=roc
remove unused code related to PresShell::ScrollFrameIntoView(nsIFrame*)
This commit is contained in:
Родитель
8e77f639c1
Коммит
5d52754e76
|
@ -1231,8 +1231,6 @@ public:
|
|||
nsEventStatus* aStatus);
|
||||
NS_IMETHOD ResizeReflow(nsIView *aView, nscoord aWidth, nscoord aHeight);
|
||||
|
||||
//nsIFocusTracker interface
|
||||
NS_IMETHOD ScrollFrameIntoView(nsIFrame *aFrame);
|
||||
// caret handling
|
||||
NS_IMETHOD GetCaret(nsICaret **aOutCaret);
|
||||
NS_IMETHOD SetCaretEnabled(PRBool aInEnable);
|
||||
|
@ -1413,7 +1411,6 @@ protected:
|
|||
nsCOMPtr<nsIFrameSelection> mSelection;
|
||||
nsCOMPtr<nsICaret> mCaret;
|
||||
PRInt16 mSelectionFlags;
|
||||
PRPackedBool mScrollingEnabled; //used to disable programmable scrolling from outside
|
||||
PRPackedBool mBatchReflows; // When set to true, the pres shell batches reflow commands.
|
||||
PresShellViewEventListener *mViewEventListener;
|
||||
nsCOMPtr<nsIEventQueueService> mEventQueueService;
|
||||
|
@ -1468,11 +1465,6 @@ private:
|
|||
|
||||
void FreeDynamicStack();
|
||||
|
||||
//helper funcs for disabing autoscrolling
|
||||
void DisableScrolling(){mScrollingEnabled = PR_FALSE;}
|
||||
void EnableScrolling(){mScrollingEnabled = PR_TRUE;}
|
||||
PRBool IsScrollingEnabled(){return mScrollingEnabled;}
|
||||
|
||||
//helper funcs for event handling
|
||||
nsIFrame* GetCurrentEventFrame();
|
||||
void PushCurrentEventInfo(nsIFrame* aFrame, nsIContent* aContent);
|
||||
|
@ -1612,8 +1604,7 @@ PresShell::PresShell():
|
|||
#ifdef IBMBIDI
|
||||
mBidiLevel(BIDI_LEVEL_UNDEFINED),
|
||||
#endif
|
||||
mEnablePrefStyleSheet(PR_TRUE),
|
||||
mScrollingEnabled(PR_TRUE)
|
||||
mEnablePrefStyleSheet(PR_TRUE)
|
||||
{
|
||||
#ifdef MOZ_REFLOW_PERF
|
||||
mReflowCountMgr = new ReflowCountMgr();
|
||||
|
@ -3128,18 +3119,6 @@ PresShell::FireResizeEvent()
|
|||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
PresShell::ScrollFrameIntoView(nsIFrame *aFrame)
|
||||
{
|
||||
if (!aFrame)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (IsScrollingEnabled())
|
||||
return ScrollFrameIntoView(aFrame, NS_PRESSHELL_SCROLL_ANYWHERE,
|
||||
NS_PRESSHELL_SCROLL_ANYWHERE);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
PresShell::SetIgnoreFrameDestruction(PRBool aIgnore)
|
||||
{
|
||||
|
|
|
@ -55,12 +55,6 @@ class nsIFocusTracker : public nsISupports
|
|||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFOCUSTRACKER_IID)
|
||||
|
||||
/** ScrollFrameIntoView
|
||||
* limited version of nsPresShell::ScrollFrameIntoView
|
||||
* @param aFrame will be the frame to scroll into view.
|
||||
*/
|
||||
NS_IMETHOD ScrollFrameIntoView(nsIFrame *aFrame) = 0;
|
||||
|
||||
/**
|
||||
* Returns the primary frame associated with the content object.
|
||||
*
|
||||
|
|
|
@ -1231,8 +1231,6 @@ public:
|
|||
nsEventStatus* aStatus);
|
||||
NS_IMETHOD ResizeReflow(nsIView *aView, nscoord aWidth, nscoord aHeight);
|
||||
|
||||
//nsIFocusTracker interface
|
||||
NS_IMETHOD ScrollFrameIntoView(nsIFrame *aFrame);
|
||||
// caret handling
|
||||
NS_IMETHOD GetCaret(nsICaret **aOutCaret);
|
||||
NS_IMETHOD SetCaretEnabled(PRBool aInEnable);
|
||||
|
@ -1413,7 +1411,6 @@ protected:
|
|||
nsCOMPtr<nsIFrameSelection> mSelection;
|
||||
nsCOMPtr<nsICaret> mCaret;
|
||||
PRInt16 mSelectionFlags;
|
||||
PRPackedBool mScrollingEnabled; //used to disable programmable scrolling from outside
|
||||
PRPackedBool mBatchReflows; // When set to true, the pres shell batches reflow commands.
|
||||
PresShellViewEventListener *mViewEventListener;
|
||||
nsCOMPtr<nsIEventQueueService> mEventQueueService;
|
||||
|
@ -1468,11 +1465,6 @@ private:
|
|||
|
||||
void FreeDynamicStack();
|
||||
|
||||
//helper funcs for disabing autoscrolling
|
||||
void DisableScrolling(){mScrollingEnabled = PR_FALSE;}
|
||||
void EnableScrolling(){mScrollingEnabled = PR_TRUE;}
|
||||
PRBool IsScrollingEnabled(){return mScrollingEnabled;}
|
||||
|
||||
//helper funcs for event handling
|
||||
nsIFrame* GetCurrentEventFrame();
|
||||
void PushCurrentEventInfo(nsIFrame* aFrame, nsIContent* aContent);
|
||||
|
@ -1612,8 +1604,7 @@ PresShell::PresShell():
|
|||
#ifdef IBMBIDI
|
||||
mBidiLevel(BIDI_LEVEL_UNDEFINED),
|
||||
#endif
|
||||
mEnablePrefStyleSheet(PR_TRUE),
|
||||
mScrollingEnabled(PR_TRUE)
|
||||
mEnablePrefStyleSheet(PR_TRUE)
|
||||
{
|
||||
#ifdef MOZ_REFLOW_PERF
|
||||
mReflowCountMgr = new ReflowCountMgr();
|
||||
|
@ -3128,18 +3119,6 @@ PresShell::FireResizeEvent()
|
|||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
PresShell::ScrollFrameIntoView(nsIFrame *aFrame)
|
||||
{
|
||||
if (!aFrame)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (IsScrollingEnabled())
|
||||
return ScrollFrameIntoView(aFrame, NS_PRESSHELL_SCROLL_ANYWHERE,
|
||||
NS_PRESSHELL_SCROLL_ANYWHERE);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
PresShell::SetIgnoreFrameDestruction(PRBool aIgnore)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче