diff -r 10e98eab6f85 -r a359256acfc6 webengine/osswebengine/WebKit/s60/webview/WebTextFormatMask.cpp --- a/webengine/osswebengine/WebKit/s60/webview/WebTextFormatMask.cpp Fri Jul 03 15:54:40 2009 +0100 +++ b/webengine/osswebengine/WebKit/s60/webview/WebTextFormatMask.cpp Thu Aug 27 07:44:59 2009 +0300 @@ -199,6 +199,20 @@ return (eb.m_start == -1); } +MaskBase* WebTextFormatMask::getMask(int aOffset) +{ + MaskBase* m = m_masks; + int i = 0; + while(m) { + if (i == aOffset) { + return m; + } + m = m->nextMask(); + ++i; + } + return NULL; +} + int WebTextFormatMask::getMultitude() { int count = 0; @@ -230,24 +244,6 @@ else if (i==aOffset) { TInputFormatMaskType ifmt = m->getInputFormatMaskType(); - if (ifmt == EStatic){ - MaskStatic* ms = static_cast(m); - if (ms) { - //make sure not to re-write the static text if it already exists - if (frame->document() && - frame->document()->focusedNode() && - frame->document()->focusedNode()->hasTagName(HTMLNames::inputTag) ) { - - HTMLInputElement* ie = static_cast(frame->document()->focusedNode()); - int len = ie->value().length(); - - if (len<=aOffset) { - UChar c = ms->getStatic(); - frame->editor()->insertTextWithoutSendingTextEvent(String(&c,1), false); - } - } - } - } return ifmt; } m = m->nextMask();