Backed out changeset ffde95eff6f4 (bug 279629) because it broke the build

This commit is contained in:
Ehsan Akhgari 2011-04-08 12:52:56 -07:00
Родитель 14b018f518
Коммит 77f4a99be8
2 изменённых файлов: 7 добавлений и 12 удалений

Просмотреть файл

@ -139,8 +139,8 @@ typedef struct CapturingContentInfo {
} CapturingContentInfo;
#define NS_IPRESSHELL_IID \
{ 0xfd4ba6e3, 0x921c, 0x4058, \
{ 0xa6, 0x1b, 0xc7, 0x14, 0x5e, 0x80, 0x50, 0x1f } }
{ 0x3a8030b5, 0x8d2c, 0x4cb3, \
{ 0xb5, 0xae, 0xb2, 0x43, 0xa9, 0x28, 0x02, 0x82 } }
// Constants for ScrollContentIntoView() function
#define NS_PRESSHELL_SCROLL_TOP 0
@ -573,8 +573,7 @@ public:
enum {
SCROLL_FIRST_ANCESTOR_ONLY = 0x01,
SCROLL_OVERFLOW_HIDDEN = 0x02,
SCROLL_NO_PARENT_FRAMES = 0x04,
SCROLL_ALLOW_SMOOTH = 0x08
SCROLL_NO_PARENT_FRAMES = 0x04
};
/**
* Scrolls the view of the document so that the given area of a frame

Просмотреть файл

@ -224,8 +224,7 @@
#define NS_TIME_FUNCTION_WITH_DOCURL do{} while(0)
#endif
static const PRUint32 ANCHOR_SCROLL_FLAGS =
SCROLL_OVERFLOW_HIDDEN | SCROLL_NO_PARENT_FRAMES | SCROLL_ALLOW_SMOOTH;
#define ANCHOR_SCROLL_FLAGS (SCROLL_OVERFLOW_HIDDEN | SCROLL_NO_PARENT_FRAMES)
#include "nsContentCID.h"
static NS_DEFINE_IID(kRangeCID, NS_RANGE_CID);
@ -1195,9 +1194,8 @@ protected:
// Information needed to properly handle scrolling content into view if the
// pre-scroll reflow flush can be interrupted. mContentToScrollTo is
// non-null between the initial scroll attempt and the first time we finish
// processing all our dirty roots. mContentScrollVPosition,
// mContentScrollHPosition and mContentToScrollToFlags are only used when
// it's non-null.
// processing all our dirty roots. mContentScrollVPosition and
// mContentScrollHPosition are only used when it's non-null.
nsCOMPtr<nsIContent> mContentToScrollTo;
PRIntn mContentScrollVPosition;
PRIntn mContentScrollHPosition;
@ -4151,9 +4149,7 @@ static void ScrollToShowRect(nsIScrollableFrame* aScrollFrame,
}
}
aScrollFrame->ScrollTo(scrollPt,
(aFlags & nsIPresShell::SCROLL_ALLOW_SMOOTH) ? nsIScrollableFrame::SMOOTH :
nsIScrollableFrame::INSTANT);
aScrollFrame->ScrollTo(scrollPt, nsIScrollableFrame::INSTANT);
}
nsresult