Lines Matching refs:mAccessKeyInfo

93       mAccessKeyInfo(nullptr),  in nsTextBoxFrame()
100 nsTextBoxFrame::~nsTextBoxFrame() { delete mAccessKeyInfo; } in ~nsTextBoxFrame()
485 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in DrawText()
489 posResolve.logicalIndex = mAccessKeyInfo->mAccesskeyIndex; in DrawText()
494 mAccessKeyInfo->mBeforeWidth = posResolve.visualLeftTwips; in DrawText()
495 mAccessKeyInfo->mAccessWidth = posResolve.visualWidth; in DrawText()
506 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in DrawText()
510 if (mAccessKeyInfo->mAccesskeyIndex > 0) in DrawText()
511 mAccessKeyInfo->mBeforeWidth = nsLayoutUtils::AppUnitWidthOfString( in DrawText()
512 mCroppedTitle.get(), mAccessKeyInfo->mAccesskeyIndex, *fontMet, in DrawText()
515 mAccessKeyInfo->mBeforeWidth = 0; in DrawText()
523 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in DrawText()
524 nsRect r(aTextRect.x + mAccessKeyInfo->mBeforeWidth, in DrawText()
525 aTextRect.y + mAccessKeyInfo->mAccessOffset, in DrawText()
526 mAccessKeyInfo->mAccessWidth, in DrawText()
527 mAccessKeyInfo->mAccessUnderlineSize); in DrawText()
548 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in CalculateUnderline()
553 mAccessKeyInfo->mAccessWidth = nsLayoutUtils::AppUnitWidthOfString( in CalculateUnderline()
554 titleString[mAccessKeyInfo->mAccesskeyIndex], aFontMetrics, in CalculateUnderline()
558 aFontMetrics.GetUnderline(offset, mAccessKeyInfo->mAccessUnderlineSize); in CalculateUnderline()
560 mAccessKeyInfo->mAccessOffset = baseline - offset; in CalculateUnderline()
819 if (mAccessKeyInfo) { in UpdateAccessIndex()
820 delete mAccessKeyInfo; in UpdateAccessIndex()
821 mAccessKeyInfo = nullptr; in UpdateAccessIndex()
824 if (!mAccessKeyInfo) { in UpdateAccessIndex()
825 mAccessKeyInfo = new nsAccessKeyInfo(); in UpdateAccessIndex()
826 if (!mAccessKeyInfo) return; in UpdateAccessIndex()
854 mAccessKeyInfo->mAccesskeyIndex = Distance(originalStart, start); in UpdateAccessIndex()
856 mAccessKeyInfo->mAccesskeyIndex = kNotFound; in UpdateAccessIndex()