Lines Matching defs:replacement
161 // Replace the first character of each replacement run with the
162 // object-replacement character and the remainder with zero width
649 ReplacementSpan replacement = null;
653 replacement = (ReplacementSpan)span;
659 if (replacement != null) {
660 // If we have a replacement span, we're moving either to
797 * Utility function for measuring and rendering a replacement.
800 * @param replacement the replacement
806 * @param x the edge of the replacement closest to the leading margin
811 * @param needWidth true if the width of the replacement is needed
815 private float handleReplacement(ReplacementSpan replacement, TextPaint wp,
842 ret = replacement.getSize(wp, mText, textStart, textLimit, fmi);
854 replacement.draw(c, mText, textStart, textLimit,
919 ReplacementSpan replacement = null;
928 replacement = (ReplacementSpan)span;
930 // We might have a replacement that uses the draw
936 if (replacement != null) {
937 x += handleReplacement(replacement, wp, i, mlimit, runIsRtl, c, x, top, y,