Bug 726592 - Uninitialised value use in nsTextFrame::GetChildFrameContainingOffset; r=roc
This commit is contained in:
@@ -91,26 +91,29 @@ enum EWordMovementType { eStartWord, eEndWord, eDefaultBehavior };
|
||||
*/
|
||||
struct NS_STACK_CLASS nsPeekOffsetStruct
|
||||
{
|
||||
void SetData(nsSelectionAmount aAmount,
|
||||
nsDirection aDirection,
|
||||
PRInt32 aStartOffset,
|
||||
nscoord aDesiredX,
|
||||
bool aJumpLines,
|
||||
bool aScrollViewStop,
|
||||
bool aIsKeyboardSelect,
|
||||
bool aVisual,
|
||||
EWordMovementType aWordMovementType = eDefaultBehavior)
|
||||
|
||||
nsPeekOffsetStruct(nsSelectionAmount aAmount,
|
||||
nsDirection aDirection,
|
||||
PRInt32 aStartOffset,
|
||||
nscoord aDesiredX,
|
||||
bool aJumpLines,
|
||||
bool aScrollViewStop,
|
||||
bool aIsKeyboardSelect,
|
||||
bool aVisual,
|
||||
EWordMovementType aWordMovementType = eDefaultBehavior)
|
||||
: mAmount(aAmount)
|
||||
, mDirection(aDirection)
|
||||
, mStartOffset(aStartOffset)
|
||||
, mDesiredX(aDesiredX)
|
||||
, mWordMovementType(aWordMovementType)
|
||||
, mJumpLines(aJumpLines)
|
||||
, mScrollViewStop(aScrollViewStop)
|
||||
, mIsKeyboardSelect(aIsKeyboardSelect)
|
||||
, mVisual(aVisual)
|
||||
, mResultContent()
|
||||
, mResultFrame(nsnull)
|
||||
, mContentOffset(0)
|
||||
, mAttachForward(false)
|
||||
{
|
||||
mAmount = aAmount;
|
||||
mDirection = aDirection;
|
||||
mStartOffset = aStartOffset;
|
||||
mDesiredX = aDesiredX;
|
||||
mJumpLines = aJumpLines;
|
||||
mScrollViewStop = aScrollViewStop;
|
||||
mIsKeyboardSelect = aIsKeyboardSelect;
|
||||
mVisual = aVisual;
|
||||
mWordMovementType = aWordMovementType;
|
||||
}
|
||||
|
||||
// Note: Most arguments (input and output) are only used with certain values
|
||||
|
||||
Reference in New Issue
Block a user