@@ -5020,7 +5020,7 @@ static void DrawSelectionDecorations(gfxContext* aContext,
5020
5020
SelectionType aType,
5021
5021
nsTextFrame* aFrame,
5022
5022
nsTextPaintStyle& aTextPaintStyle,
5023
- const nsTextRangeStyle &aRangeStyle,
5023
+ const TextRangeStyle &aRangeStyle,
5024
5024
const gfxPoint& aPt, gfxFloat aXInFrame, gfxFloat aWidth,
5025
5025
gfxFloat aAscent, const gfxFont::Metrics& aFontMetrics,
5026
5026
nsTextFrame::DrawPathCallbacks* aCallbacks)
@@ -5065,7 +5065,7 @@ static void DrawSelectionDecorations(gfxContext* aContext,
5065
5065
if (aRangeStyle.IsDefined ()) {
5066
5066
// If IME defines the style, that should override our definition.
5067
5067
if (aRangeStyle.IsLineStyleDefined ()) {
5068
- if (aRangeStyle.mLineStyle == nsTextRangeStyle ::LINESTYLE_NONE) {
5068
+ if (aRangeStyle.mLineStyle == TextRangeStyle ::LINESTYLE_NONE) {
5069
5069
return ;
5070
5070
}
5071
5071
style = aRangeStyle.mLineStyle ;
@@ -5115,7 +5115,7 @@ static void DrawSelectionDecorations(gfxContext* aContext,
5115
5115
*/
5116
5116
static bool GetSelectionTextColors (SelectionType aType,
5117
5117
nsTextPaintStyle& aTextPaintStyle,
5118
- const nsTextRangeStyle &aRangeStyle,
5118
+ const TextRangeStyle &aRangeStyle,
5119
5119
nscolor* aForeground, nscolor* aBackground)
5120
5120
{
5121
5121
switch (aType) {
@@ -5216,7 +5216,7 @@ class SelectionIterator {
5216
5216
*/
5217
5217
bool GetNextSegment (gfxFloat* aXOffset, uint32_t * aOffset, uint32_t * aLength,
5218
5218
gfxFloat* aHyphenWidth, SelectionType* aType,
5219
- nsTextRangeStyle * aStyle);
5219
+ TextRangeStyle * aStyle);
5220
5220
void UpdateWithAdvance (gfxFloat aAdvance) {
5221
5221
mXOffset += aAdvance*mTextRun ->GetDirection ();
5222
5222
}
@@ -5244,7 +5244,7 @@ SelectionIterator::SelectionIterator(SelectionDetails** aSelectionDetails,
5244
5244
5245
5245
bool SelectionIterator::GetNextSegment (gfxFloat* aXOffset,
5246
5246
uint32_t * aOffset, uint32_t * aLength, gfxFloat* aHyphenWidth,
5247
- SelectionType* aType, nsTextRangeStyle * aStyle)
5247
+ SelectionType* aType, TextRangeStyle * aStyle)
5248
5248
{
5249
5249
if (mIterator .GetOriginalOffset () >= mOriginalEnd )
5250
5250
return false ;
@@ -5256,7 +5256,7 @@ bool SelectionIterator::GetNextSegment(gfxFloat* aXOffset,
5256
5256
SelectionDetails* sdptr = mSelectionDetails [index];
5257
5257
SelectionType type =
5258
5258
sdptr ? sdptr->mType : nsISelectionController::SELECTION_NONE;
5259
- nsTextRangeStyle style;
5259
+ TextRangeStyle style;
5260
5260
if (sdptr) {
5261
5261
style = sdptr->mTextRangeStyle ;
5262
5262
}
@@ -5430,7 +5430,7 @@ nsTextFrame::PaintTextWithSelectionColors(gfxContext* aCtx,
5430
5430
gfxFloat xOffset, hyphenWidth;
5431
5431
uint32_t offset, length; // in transformed string
5432
5432
SelectionType type;
5433
- nsTextRangeStyle rangeStyle;
5433
+ TextRangeStyle rangeStyle;
5434
5434
// Draw background colors
5435
5435
if (anyBackgrounds) {
5436
5436
SelectionIterator iterator (prevailingSelections, aContentOffset, aContentLength,
@@ -5562,7 +5562,7 @@ nsTextFrame::PaintTextSelectionDecorations(gfxContext* aCtx,
5562
5562
gfxRect dirtyRect (aDirtyRect.x / app, aDirtyRect.y / app,
5563
5563
aDirtyRect.width / app, aDirtyRect.height / app);
5564
5564
SelectionType type;
5565
- nsTextRangeStyle selectedStyle;
5565
+ TextRangeStyle selectedStyle;
5566
5566
while (iterator.GetNextSegment (&xOffset, &offset, &length, &hyphenWidth,
5567
5567
&type, &selectedStyle)) {
5568
5568
gfxFloat advance = hyphenWidth +
@@ -6250,10 +6250,10 @@ nsTextFrame::CombineSelectionUnderlineRect(nsPresContext* aPresContext,
6250
6250
}
6251
6251
} else {
6252
6252
// IME selections
6253
- nsTextRangeStyle & rangeStyle = sd->mTextRangeStyle ;
6253
+ TextRangeStyle & rangeStyle = sd->mTextRangeStyle ;
6254
6254
if (rangeStyle.IsDefined ()) {
6255
6255
if (!rangeStyle.IsLineStyleDefined () ||
6256
- rangeStyle.mLineStyle == nsTextRangeStyle ::LINESTYLE_NONE) {
6256
+ rangeStyle.mLineStyle == TextRangeStyle ::LINESTYLE_NONE) {
6257
6257
continue ;
6258
6258
}
6259
6259
style = rangeStyle.mLineStyle ;
0 commit comments