accidentally left out a parameter to GetPositionSlowly for small caps ect.

This commit is contained in:
mjudge%netscape.com 1999-05-17 19:50:29 +00:00
Родитель 6678c4e265
Коммит d0b617b231
2 изменённых файлов: 14 добавлений и 8 удалений

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

@ -234,7 +234,7 @@ public:
NS_IMETHOD GetPositionSlowly(nsIPresContext& aCX,
nsIRenderingContext * aRendContext,
nsGUIEvent* aEvent,
nsIFrame * aNewFrame,
nsIContent ** aNewContent,
PRUint32& aActualContentOffset,
PRInt32& aOffset);
@ -967,12 +967,12 @@ nsresult
nsTextFrame::GetPositionSlowly(nsIPresContext& aPresContext,
nsIRenderingContext* aRendContext,
nsGUIEvent* aEvent,
nsIFrame* aNewFrame,
nsIContent** aNewContent,
PRUint32& aAcutalContentOffset,
PRInt32& aOffset)
{
if (!aRendContext || !aEvent || !aNewFrame) {
if (!aRendContext || !aEvent || !aNewContent) {
return NS_ERROR_NULL_POINTER;
}
@ -1083,6 +1083,9 @@ nsTextFrame::GetPositionSlowly(nsIPresContext& aPresContext,
if (ip != indicies) {
delete [] ip;
}
*aNewContent = mContent;
if (*aNewContent)
(*aNewContent)->AddRef();
return NS_OK;
}
@ -1701,7 +1704,7 @@ nsTextFrame::GetPosition(nsIPresContext& aPresContext,
TextStyle ts(&aPresContext, *aRendContext, mStyleContext);
if (ts.mSmallCaps || ts.mWordSpacing || ts.mLetterSpacing) {
nsresult result = GetPositionSlowly(aPresContext, aRendContext, aEvent, aNewFrame,
nsresult result = GetPositionSlowly(aPresContext, aRendContext, aEvent, aNewContent,
aActualContentOffset, aOffset);
aOffsetEnd = aOffset;
return result;

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

@ -234,7 +234,7 @@ public:
NS_IMETHOD GetPositionSlowly(nsIPresContext& aCX,
nsIRenderingContext * aRendContext,
nsGUIEvent* aEvent,
nsIFrame * aNewFrame,
nsIContent ** aNewContent,
PRUint32& aActualContentOffset,
PRInt32& aOffset);
@ -967,12 +967,12 @@ nsresult
nsTextFrame::GetPositionSlowly(nsIPresContext& aPresContext,
nsIRenderingContext* aRendContext,
nsGUIEvent* aEvent,
nsIFrame* aNewFrame,
nsIContent** aNewContent,
PRUint32& aAcutalContentOffset,
PRInt32& aOffset)
{
if (!aRendContext || !aEvent || !aNewFrame) {
if (!aRendContext || !aEvent || !aNewContent) {
return NS_ERROR_NULL_POINTER;
}
@ -1083,6 +1083,9 @@ nsTextFrame::GetPositionSlowly(nsIPresContext& aPresContext,
if (ip != indicies) {
delete [] ip;
}
*aNewContent = mContent;
if (*aNewContent)
(*aNewContent)->AddRef();
return NS_OK;
}
@ -1701,7 +1704,7 @@ nsTextFrame::GetPosition(nsIPresContext& aPresContext,
TextStyle ts(&aPresContext, *aRendContext, mStyleContext);
if (ts.mSmallCaps || ts.mWordSpacing || ts.mLetterSpacing) {
nsresult result = GetPositionSlowly(aPresContext, aRendContext, aEvent, aNewFrame,
nsresult result = GetPositionSlowly(aPresContext, aRendContext, aEvent, aNewContent,
aActualContentOffset, aOffset);
aOffsetEnd = aOffset;
return result;