OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 void V8PerIsolateData::setDOMTemplate(void* domTemplateKey, v8::Handle<v8::Funct
ionTemplate> templ) | 179 void V8PerIsolateData::setDOMTemplate(void* domTemplateKey, v8::Handle<v8::Funct
ionTemplate> templ) |
180 { | 180 { |
181 currentDOMTemplateMap().add(domTemplateKey, v8::Eternal<v8::FunctionTemplate
>(isolate(), v8::Local<v8::FunctionTemplate>(templ))); | 181 currentDOMTemplateMap().add(domTemplateKey, v8::Eternal<v8::FunctionTemplate
>(isolate(), v8::Local<v8::FunctionTemplate>(templ))); |
182 } | 182 } |
183 | 183 |
184 v8::Local<v8::Context> V8PerIsolateData::ensureScriptRegexpContext() | 184 v8::Local<v8::Context> V8PerIsolateData::ensureScriptRegexpContext() |
185 { | 185 { |
186 if (!m_scriptRegexpScriptState) { | 186 if (!m_scriptRegexpScriptState) { |
187 v8::Local<v8::Context> context(v8::Context::New(isolate())); | 187 v8::Local<v8::Context> context(v8::Context::New(isolate())); |
188 m_scriptRegexpScriptState = ScriptState::create(context, DOMWrapperWorld
::create()); | 188 m_scriptRegexpScriptState = ScriptState::create(context, DOMWrapperWorld
::create(isolate())); |
189 } | 189 } |
190 return m_scriptRegexpScriptState->context(); | 190 return m_scriptRegexpScriptState->context(); |
191 } | 191 } |
192 | 192 |
193 bool V8PerIsolateData::hasInstance(const WrapperTypeInfo* info, v8::Handle<v8::V
alue> value) | 193 bool V8PerIsolateData::hasInstance(const WrapperTypeInfo* info, v8::Handle<v8::V
alue> value) |
194 { | 194 { |
195 return hasInstance(info, value, m_domTemplateMapForMainWorld) | 195 return hasInstance(info, value, m_domTemplateMapForMainWorld) |
196 || hasInstance(info, value, m_domTemplateMapForNonMainWorld); | 196 || hasInstance(info, value, m_domTemplateMapForNonMainWorld); |
197 } | 197 } |
198 | 198 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 } | 250 } |
251 | 251 |
252 IDBPendingTransactionMonitor* V8PerIsolateData::ensureIDBPendingTransactionMonit
or() | 252 IDBPendingTransactionMonitor* V8PerIsolateData::ensureIDBPendingTransactionMonit
or() |
253 { | 253 { |
254 if (!m_idbPendingTransactionMonitor) | 254 if (!m_idbPendingTransactionMonitor) |
255 m_idbPendingTransactionMonitor = adoptPtr(new IDBPendingTransactionMonit
or()); | 255 m_idbPendingTransactionMonitor = adoptPtr(new IDBPendingTransactionMonit
or()); |
256 return m_idbPendingTransactionMonitor.get(); | 256 return m_idbPendingTransactionMonitor.get(); |
257 } | 257 } |
258 | 258 |
259 } // namespace blink | 259 } // namespace blink |
OLD | NEW |