Changeset 53193 in webkit


Ignore:
Timestamp:
Jan 13, 2010 10:30:04 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-13 Steve Block <steveblock@google.com>

Update appendClassName in jni_runtime.cpp to use WebCore::StringBuilder, rather than JSC::StringBuilder.
https://bugs.webkit.org/show_bug.cgi?id=33586

Avoiding the JSC version of StringBuilder allows this file to be used with both JSC and V8 on Android.

No new tests, refactoring only.

  • bridge/jni/jni_runtime.cpp: Modified. (JavaMethod::signature): Modified. Use WebCore::StringBuilder.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r53192 r53193  
     12010-01-13  Steve Block  <steveblock@google.com>
     2
     3        Update appendClassName in jni_runtime.cpp to use WebCore::StringBuilder, rather than JSC::StringBuilder.
     4        https://bugs.webkit.org/show_bug.cgi?id=33586
     5
     6        Avoiding the JSC version of StringBuilder allows this file to be used with both JSC and V8 on Android.
     7
     8        No new tests, refactoring only.
     9
     10        * bridge/jni/jni_runtime.cpp: Modified.
     11        (JavaMethod::signature): Modified. Use WebCore::StringBuilder.
     12
    1132010-01-13  Kent Hansen  <kent.hansen@nokia.com>
    214
  • trunk/WebCore/bridge/jni/jni_runtime.cpp

    r52329 r53193  
    2929#if ENABLE(MAC_JAVA_BRIDGE)
    3030
     31#include "CString.h"
     32#include "StringBuilder.h"
    3133#include "jni_utility.h"
    3234#include "jni_utility_private.h"
     
    3638#include <runtime/Error.h>
    3739#include <runtime/JSLock.h>
    38 #include <runtime/StringBuilder.h>
    3940
    4041#ifdef NDEBUG
     
    4950using namespace JSC;
    5051using namespace JSC::Bindings;
     52using namespace WebCore;
    5153
    5254
     
    349351        }
    350352       
    351         UString signatureUString = signatureBuilder.release();
    352         _signature = strdup(signatureUString.ascii());
     353        String signatureString = signatureBuilder.toString();
     354        _signature = strdup(signatureString.utf8().data());
    353355    }
    354356   
Note: See TracChangeset for help on using the changeset viewer.