| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8_binding.h" | 5 #include "v8_binding.h" |
| 6 | 6 |
| 7 #include "AtomicString.h" | 7 #include "AtomicString.h" |
| 8 #include "CString.h" | 8 #include "CString.h" |
| 9 #include "MathExtras.h" | 9 #include "MathExtras.h" |
| 10 #include "PlatformString.h" | 10 #include "PlatformString.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 return v8::String::NewExternal(new WebCoreStringResource(str)); | 121 return v8::String::NewExternal(new WebCoreStringResource(str)); |
| 122 } | 122 } |
| 123 | 123 |
| 124 v8::Local<v8::String> v8ExternalString(const String& str) { | 124 v8::Local<v8::String> v8ExternalString(const String& str) { |
| 125 if (!str.length()) | 125 if (!str.length()) |
| 126 return v8::String::Empty(); | 126 return v8::String::Empty(); |
| 127 return v8::String::NewExternal(new WebCoreStringResource(str)); | 127 return v8::String::NewExternal(new WebCoreStringResource(str)); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace WebCore | 130 } // namespace WebCore |
| OLD | NEW |