Changeset 18159 in webkit


Ignore:
Timestamp:
Dec 11, 2006 1:54:43 PM (17 years ago)
Author:
yongjzha
Message:

2006-12-11 w3liu <wei.liu@nokia.com>

Reviewed by yongjun.zhang@nokia.com.
DESC: add flag to remove the SDK dependency on AknSettingsCache
http://bugzilla.opendarwin.org/show_bug.cgi?id=11806

  • BrowserCore/Formcontrols/src/FControlInputSkin.cpp: (CFormInputSkin::Draw): (CFormInputSkin::SetText):
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  
    5959#include "FormDataManager.h"
    6060#include "WebCoreLoaderContainer.h"
     61
     62#ifndef __BROWSER_SDK
    6163#include "AknSettingCache.h"
    6264#include "AknUtils.h"
    6365#include <BidiVisual.h>
     66#endif
    6467
    6568void BrCtlPanic(TInt);
     
    220223    {
    221224    CFbsBitGc* gcContext = &aPainter.Gc();
     225    #ifndef __BROWSER_SDK
    222226    CAknSettingCache& cache = CAknEnv::Static()->SettingCache();
    223227    TLanguage lang = cache.InputLanguage();
     
    225229    if ( lang == ELangHebrew || lang == ELangArabic )
    226230        iRtl = ETrue;
    227 
     231    #endif
    228232    if( !iInputWidget )
    229233        {
     
    473477    iVisualText = NULL;
    474478   // modify text if needed
    475     TRAP_IGNORE(
    476479  if (iType == ETextArea)
    477480    {
     481        TRAP_IGNORE(
    478482        iVisualText = HBufC::NewL( iData->Length() + iDisplayHeightInChars * KAknBidiExtraSpacePerLine + 1 );
    479483        //
     
    486490        AknBidiTextUtils::ConvertToVisualAndWrapToArrayL( visualTextPtr, *iLineWidthArray,
    487491            *iFont, *iWrappedArray,
    488             0xFFFF /*no ellipsis*/);
     492            0xFFFF /*no ellipsis*/););
    489493    }
    490494    else if (iType == EPassword )
    491495        {
     496        TRAP_IGNORE(
    492497        // if the inputtype is password, then fill it with mask characters
    493498        iVisualText = HBufC::NewL( iData->Length() );
     
    496501        visualTextPtr.SetLength( iData->Length() );
    497502        //'*' password mask character
    498         visualTextPtr.Fill('*');
     503        visualTextPtr.Fill('*'););
    499504        }
    500505    else
    501506        {
     507#ifdef __BROWSER_SDK
     508        TRAP_IGNORE(
     509        iVisualText = iData->AllocL(););
     510#else
     511        TRAP_IGNORE(
    502512        TInt visualLen = iData->Length() + TBidiLogicalToVisual::KMinCharAvailable + 1;
    503513        iVisualText = HBufC::NewL(visualLen );
    504514        TPtr visualDes = iVisualText->Des();
    505             TInt charWidth = iFont->MaxNormalCharWidthInPixels();
    506 
     515        TInt charWidth = iFont->MaxNormalCharWidthInPixels();
    507516        // create the visual clip for the text
    508517        AknBidiTextUtils::ConvertToVisualAndClip(*iData, visualDes,
    509518            *iFont, (KInputDefaultWidth - 3)* charWidth ,
    510519             KInputMaxWidth*charWidth );
    511         }
    512     );
     520        );
     521#endif
     522        }
    513523
    514524    // repaint the rect
  • S60/branches/3.1m/WebKit/ChangeLog

    r18157 r18159  
     12006-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
    1112006-12-11  w3liu  <wei.liu@nokia.com>
    212
Note: See TracChangeset for help on using the changeset viewer.