Lines Matching refs:mAccessKeyInfo
98 mAccessKeyInfo(nullptr), in nsTextBoxFrame()
105 nsTextBoxFrame::~nsTextBoxFrame() { delete mAccessKeyInfo; } in ~nsTextBoxFrame()
500 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in DrawText()
504 posResolve.logicalIndex = mAccessKeyInfo->mAccesskeyIndex; in DrawText()
509 mAccessKeyInfo->mBeforeWidth = posResolve.visualLeftTwips; in DrawText()
510 mAccessKeyInfo->mAccessWidth = posResolve.visualWidth; in DrawText()
521 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in DrawText()
525 if (mAccessKeyInfo->mAccesskeyIndex > 0) in DrawText()
526 mAccessKeyInfo->mBeforeWidth = nsLayoutUtils::AppUnitWidthOfString( in DrawText()
527 mCroppedTitle.get(), mAccessKeyInfo->mAccesskeyIndex, *fontMet, in DrawText()
530 mAccessKeyInfo->mBeforeWidth = 0; in DrawText()
538 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in DrawText()
539 nsRect r(aTextRect.x + mAccessKeyInfo->mBeforeWidth, in DrawText()
540 aTextRect.y + mAccessKeyInfo->mAccessOffset, in DrawText()
541 mAccessKeyInfo->mAccessWidth, in DrawText()
542 mAccessKeyInfo->mAccessUnderlineSize); in DrawText()
563 if (mAccessKeyInfo && mAccessKeyInfo->mAccesskeyIndex != kNotFound) { in CalculateUnderline()
568 mAccessKeyInfo->mAccessWidth = nsLayoutUtils::AppUnitWidthOfString( in CalculateUnderline()
569 titleString[mAccessKeyInfo->mAccesskeyIndex], aFontMetrics, in CalculateUnderline()
573 aFontMetrics.GetUnderline(offset, mAccessKeyInfo->mAccessUnderlineSize); in CalculateUnderline()
575 mAccessKeyInfo->mAccessOffset = baseline - offset; in CalculateUnderline()
834 if (mAccessKeyInfo) { in UpdateAccessIndex()
835 delete mAccessKeyInfo; in UpdateAccessIndex()
836 mAccessKeyInfo = nullptr; in UpdateAccessIndex()
839 if (!mAccessKeyInfo) { in UpdateAccessIndex()
840 mAccessKeyInfo = new nsAccessKeyInfo(); in UpdateAccessIndex()
841 if (!mAccessKeyInfo) return; in UpdateAccessIndex()
869 mAccessKeyInfo->mAccesskeyIndex = Distance(originalStart, start); in UpdateAccessIndex()
871 mAccessKeyInfo->mAccesskeyIndex = kNotFound; in UpdateAccessIndex()