Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp

Issue 2810413003: Extract WebCoreStringResouce out of V8StringResource (Closed)
Patch Set: Fix copyrights Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp
index d0f5cc3748e6cb915442106af2130631f414b9b8..21b5d107424c420e7d427c4898e3fa0478b5d717 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8ValueCache.cpp
@@ -70,8 +70,7 @@ void StringCache::Dispose() {
static v8::Local<v8::String> MakeExternalString(v8::Isolate* isolate,
const String& string) {
if (string.Is8Bit()) {
- WebCoreStringResource8* string_resource =
- new WebCoreStringResource8(string);
+ StringResource8* string_resource = new StringResource8(string);
v8::Local<v8::String> new_string;
if (!v8::String::NewExternalOneByte(isolate, string_resource)
.ToLocal(&new_string)) {
@@ -81,8 +80,7 @@ static v8::Local<v8::String> MakeExternalString(v8::Isolate* isolate,
return new_string;
}
- WebCoreStringResource16* string_resource =
- new WebCoreStringResource16(string);
+ StringResource16* string_resource = new StringResource16(string);
v8::Local<v8::String> new_string;
if (!v8::String::NewExternalTwoByte(isolate, string_resource)
.ToLocal(&new_string)) {

Powered by Google App Engine
This is Rietveld 408576698