Changeset 18159 in webkit
- Timestamp:
- Dec 11, 2006 1:54:43 PM (17 years ago)
- Location:
- S60/branches/3.1m/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
S60/branches/3.1m/WebKit/BrowserCore/Formcontrols/src/FControlInputSkin.cpp
r18157 r18159 59 59 #include "FormDataManager.h" 60 60 #include "WebCoreLoaderContainer.h" 61 62 #ifndef __BROWSER_SDK 61 63 #include "AknSettingCache.h" 62 64 #include "AknUtils.h" 63 65 #include <BidiVisual.h> 66 #endif 64 67 65 68 void BrCtlPanic(TInt); … … 220 223 { 221 224 CFbsBitGc* gcContext = &aPainter.Gc(); 225 #ifndef __BROWSER_SDK 222 226 CAknSettingCache& cache = CAknEnv::Static()->SettingCache(); 223 227 TLanguage lang = cache.InputLanguage(); … … 225 229 if ( lang == ELangHebrew || lang == ELangArabic ) 226 230 iRtl = ETrue; 227 231 #endif 228 232 if( !iInputWidget ) 229 233 { … … 473 477 iVisualText = NULL; 474 478 // modify text if needed 475 TRAP_IGNORE(476 479 if (iType == ETextArea) 477 480 { 481 TRAP_IGNORE( 478 482 iVisualText = HBufC::NewL( iData->Length() + iDisplayHeightInChars * KAknBidiExtraSpacePerLine + 1 ); 479 483 // … … 486 490 AknBidiTextUtils::ConvertToVisualAndWrapToArrayL( visualTextPtr, *iLineWidthArray, 487 491 *iFont, *iWrappedArray, 488 0xFFFF /*no ellipsis*/); 492 0xFFFF /*no ellipsis*/);); 489 493 } 490 494 else if (iType == EPassword ) 491 495 { 496 TRAP_IGNORE( 492 497 // if the inputtype is password, then fill it with mask characters 493 498 iVisualText = HBufC::NewL( iData->Length() ); … … 496 501 visualTextPtr.SetLength( iData->Length() ); 497 502 //'*' password mask character 498 visualTextPtr.Fill('*'); 503 visualTextPtr.Fill('*');); 499 504 } 500 505 else 501 506 { 507 #ifdef __BROWSER_SDK 508 TRAP_IGNORE( 509 iVisualText = iData->AllocL();); 510 #else 511 TRAP_IGNORE( 502 512 TInt visualLen = iData->Length() + TBidiLogicalToVisual::KMinCharAvailable + 1; 503 513 iVisualText = HBufC::NewL(visualLen ); 504 514 TPtr visualDes = iVisualText->Des(); 505 TInt charWidth = iFont->MaxNormalCharWidthInPixels(); 506 515 TInt charWidth = iFont->MaxNormalCharWidthInPixels(); 507 516 // create the visual clip for the text 508 517 AknBidiTextUtils::ConvertToVisualAndClip(*iData, visualDes, 509 518 *iFont, (KInputDefaultWidth - 3)* charWidth , 510 519 KInputMaxWidth*charWidth ); 511 } 512 ); 520 ); 521 #endif 522 } 513 523 514 524 // repaint the rect -
S60/branches/3.1m/WebKit/ChangeLog
r18157 r18159 1 2006-12-11 w3liu <wei.liu@nokia.com> 2 3 Reviewed by yongjun.zhang@nokia.com. 4 DESC: add flag to remove the SDK dependency on AknSettingsCache 5 http://bugzilla.opendarwin.org/show_bug.cgi?id=11806 6 7 * BrowserCore/Formcontrols/src/FControlInputSkin.cpp: 8 (CFormInputSkin::Draw): 9 (CFormInputSkin::SetText): 10 1 11 2006-12-11 w3liu <wei.liu@nokia.com> 2 12
Note: See TracChangeset
for help on using the changeset viewer.