equal
deleted
inserted
replaced
190 } |
190 } |
191 |
191 |
192 m_currentMask = m_currentMask->nextMask(); |
192 m_currentMask = m_currentMask->nextMask(); |
193 } |
193 } |
194 |
194 |
195 // this check doesn't seem to be proper as the check is done for |
195 // did we use up all the masks? |
196 // the partial text.Because the checkText() is called for every character input by user, |
196 if(m_currentMask && m_currentMask->multitude() != kInfinite) |
197 // there are remaining masks after complete text length has been checked, |
197 return false; |
198 // that is valid case and it should not return false. |
|
199 // If text length is bigger than mask length then that case is handled within for loop |
|
200 //before this condition check. So it is redundant in current implementation |
|
201 // did we use up all the masks? |
|
202 /* if(m_currentMask && m_currentMask->multitude() != kInfinite) |
|
203 return false;*/ |
|
204 |
198 |
205 return (eb.m_start == -1); |
199 return (eb.m_start == -1); |
206 } |
200 } |
207 |
201 |
208 MaskBase* WebTextFormatMask::getMask(int aOffset) |
202 MaskBase* WebTextFormatMask::getMask(int aOffset) |
279 msk->m_next = m; |
273 msk->m_next = m; |
280 } |
274 } |
281 |
275 |
282 return true; |
276 return true; |
283 } |
277 } |
284 |
|
285 bool WebTextFormatMask::acceptAll() |
|
286 { |
|
287 return m_acceptAll; |
|
288 } |
|
289 |
278 |
290 MaskComposite::MaskComposite(TInputFormatMaskType t, int mul) |
279 MaskComposite::MaskComposite(TInputFormatMaskType t, int mul) |
291 : MaskSingle(t), m_offset(0), m_length(mul) |
280 : MaskSingle(t), m_offset(0), m_length(mul) |
292 { |
281 { |
293 } |
282 } |