equal
deleted
inserted
replaced
861 return prev; |
861 return prev; |
862 } |
862 } |
863 |
863 |
864 void RenderText::setTextInternal(PassRefPtr<StringImpl> text, bool backspace) |
864 void RenderText::setTextInternal(PassRefPtr<StringImpl> text, bool backspace) |
865 { |
865 { |
|
866 #if PLATFORM(SYMBIAN) |
|
867 unsigned oldlength = m_text->length(); |
|
868 #endif |
866 m_text = text; |
869 m_text = text; |
867 ASSERT(m_text); |
870 ASSERT(m_text); |
868 |
871 |
869 m_text = m_text->replace('\\', backslashAsCurrencySymbol()); |
872 m_text = m_text->replace('\\', backslashAsCurrencySymbol()); |
870 |
873 |
927 case TSDISC: |
930 case TSDISC: |
928 if(backspace){ |
931 if(backspace){ |
929 m_text = m_text->secure(bullet); |
932 m_text = m_text->secure(bullet); |
930 } |
933 } |
931 else{ |
934 else{ |
932 m_text = m_text->secureShowOffset(bullet, m_offset); |
935 |
|
936 if(oldlength <= m_text->length()) |
|
937 { |
|
938 m_offset = m_text->length() - 1 ; |
|
939 m_text = m_text->secureShowOffset(bullet, m_offset); |
|
940 } |
|
941 else |
|
942 { |
|
943 m_text = m_text->secure(bullet); |
|
944 } |
933 } |
945 } |
934 |
946 |
935 break; |
947 break; |
936 case TSSQUARE: |
948 case TSSQUARE: |
937 m_text = m_text->secureShowOffset(blackSquare, m_offset); |
949 m_text = m_text->secureShowOffset(blackSquare, m_offset); |