Bug 841036 - Set default composition color to text field color; r=cpeterson

This commit is contained in:
Jim Chen
2013-02-18 14:00:47 -05:00
parent fa0abf8b47
commit 7ae29eddfa

View File

@@ -384,6 +384,9 @@ final class GeckoEditable
int rangeStart = composingStart;
TextPaint tp = new TextPaint();
TextPaint emptyTp = new TextPaint();
// set initial foreground color to 0, because we check for tp.getColor() == 0
// below to decide whether to pass a foreground color to Gecko
emptyTp.setColor(0);
do {
int rangeType, rangeStyles = 0, rangeLineStyle = GeckoEvent.IME_RANGE_LINE_NONE;
boolean rangeBoldLine = false;