jdk/src/share/native/sun/font/layout/GXLayoutEngine.cpp
changeset 16891 91e99bed64ae
parent 7486 6a36b1ebc620
equal deleted inserted replaced
16890:36b30720a997 16891:91e99bed64ae
    39 
    39 
    40 U_NAMESPACE_BEGIN
    40 U_NAMESPACE_BEGIN
    41 
    41 
    42 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GXLayoutEngine)
    42 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GXLayoutEngine)
    43 
    43 
    44 GXLayoutEngine::GXLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const MorphTableHeader *morphTable, LEErrorCode &success)
    44   GXLayoutEngine::GXLayoutEngine(const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, const LEReferenceTo<MorphTableHeader> &morphTable, LEErrorCode &success)
    45     : LayoutEngine(fontInstance, scriptCode, languageCode, 0, success), fMorphTable(morphTable)
    45     : LayoutEngine(fontInstance, scriptCode, languageCode, 0, success), fMorphTable(morphTable)
    46 {
    46 {
       
    47   fMorphTable.orphan();
    47     // nothing else to do?
    48     // nothing else to do?
    48 }
    49 }
    49 
    50 
    50 GXLayoutEngine::~GXLayoutEngine()
    51 GXLayoutEngine::~GXLayoutEngine()
    51 {
    52 {
    68 
    69 
    69     if (LE_FAILURE(success)) {
    70     if (LE_FAILURE(success)) {
    70         return 0;
    71         return 0;
    71     }
    72     }
    72 
    73 
    73     fMorphTable->process(glyphStorage);
    74     fMorphTable->process(fMorphTable, glyphStorage, success);
    74 
    75 
    75     return count;
    76     return count;
    76 }
    77 }
    77 
    78 
    78 // apply positional tables
    79 // apply positional tables