| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "bindings/core/v8/V8HTMLElement.h" | 5 #include "bindings/core/v8/V8HTMLElement.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/DOMWrapperWorld.h" | 7 #include "bindings/core/v8/DOMWrapperWorld.h" |
| 8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "bindings/core/v8/ScriptCustomElementDefinition.h" | 9 #include "bindings/core/v8/ScriptCustomElementDefinition.h" |
| 10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8Binding.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 return; | 60 return; |
| 61 const WrapperTypeInfo* wrapperType = element->wrapperTypeInfo(); | 61 const WrapperTypeInfo* wrapperType = element->wrapperTypeInfo(); |
| 62 v8::Local<v8::Object> wrapper = V8DOMWrapper::associateObjectWithWrapper( | 62 v8::Local<v8::Object> wrapper = V8DOMWrapper::associateObjectWithWrapper( |
| 63 isolate, | 63 isolate, |
| 64 element, | 64 element, |
| 65 wrapperType, | 65 wrapperType, |
| 66 info.This()); | 66 info.This()); |
| 67 | 67 |
| 68 if (!v8CallBoolean(wrapper->SetPrototype( | 68 if (!v8CallBoolean(wrapper->SetPrototype( |
| 69 scriptState->context(), | 69 scriptState->context(), |
| 70 def->prototype(scriptState)))) { | 70 def->prototype()))) { |
| 71 return; | 71 return; |
| 72 } | 72 } |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| OLD | NEW |