| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2013 Google Inc. All rights reserved. | 2  * Copyright (C) 2013 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 are | 5  * modification, are permitted provided that the following conditions are | 
| 6  * met: | 6  * met: | 
| 7  * | 7  * | 
| 8  *     * Redistributions of source code must retain the above copyright | 8  *     * Redistributions of source code must retain the above copyright | 
| 9  * notice, this list of conditions and the following disclaimer. | 9  * notice, this list of conditions and the following disclaimer. | 
| 10  *     * Redistributions in binary form must reproduce the above | 10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
| 37 #include "V8HTMLElementWrapperFactory.h" | 37 #include "V8HTMLElementWrapperFactory.h" | 
| 38 #include "V8SVGElementWrapperFactory.h" | 38 #include "V8SVGElementWrapperFactory.h" | 
| 39 #include "bindings/v8/CustomElementBinding.h" | 39 #include "bindings/v8/CustomElementBinding.h" | 
| 40 #include "bindings/v8/DOMWrapperWorld.h" | 40 #include "bindings/v8/DOMWrapperWorld.h" | 
| 41 #include "bindings/v8/Dictionary.h" | 41 #include "bindings/v8/Dictionary.h" | 
| 42 #include "bindings/v8/ExceptionState.h" | 42 #include "bindings/v8/ExceptionState.h" | 
| 43 #include "bindings/v8/UnsafePersistent.h" | 43 #include "bindings/v8/UnsafePersistent.h" | 
| 44 #include "bindings/v8/V8Binding.h" | 44 #include "bindings/v8/V8Binding.h" | 
| 45 #include "bindings/v8/V8HiddenPropertyName.h" | 45 #include "bindings/v8/V8HiddenPropertyName.h" | 
| 46 #include "bindings/v8/V8PerContextData.h" | 46 #include "bindings/v8/V8PerContextData.h" | 
| 47 #include "core/dom/CustomElementCallbackDispatcher.h" |  | 
| 48 #include "core/dom/CustomElementDefinition.h" |  | 
| 49 #include "core/dom/CustomElementDescriptor.h" |  | 
| 50 #include "core/dom/CustomElementException.h" |  | 
| 51 #include "core/dom/Document.h" | 47 #include "core/dom/Document.h" | 
|  | 48 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 
|  | 49 #include "core/dom/custom/CustomElementDefinition.h" | 
|  | 50 #include "core/dom/custom/CustomElementDescriptor.h" | 
|  | 51 #include "core/dom/custom/CustomElementException.h" | 
| 52 #include "wtf/Assertions.h" | 52 #include "wtf/Assertions.h" | 
| 53 | 53 | 
| 54 namespace WebCore { | 54 namespace WebCore { | 
| 55 | 55 | 
| 56 static void constructCustomElement(const v8::FunctionCallbackInfo<v8::Value>&); | 56 static void constructCustomElement(const v8::FunctionCallbackInfo<v8::Value>&); | 
| 57 | 57 | 
| 58 CustomElementConstructorBuilder::CustomElementConstructorBuilder(ScriptState* st
     ate, const Dictionary* options) | 58 CustomElementConstructorBuilder::CustomElementConstructorBuilder(ScriptState* st
     ate, const Dictionary* options) | 
| 59     : m_context(state->context()) | 59     : m_context(state->context()) | 
| 60     , m_options(options) | 60     , m_options(options) | 
| 61     , m_wrapperType(0) | 61     , m_wrapperType(0) | 
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 273 | 273 | 
| 274     ExceptionState es(args.GetIsolate()); | 274     ExceptionState es(args.GetIsolate()); | 
| 275     CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 275     CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 
| 276     RefPtr<Element> element = document->createElementNS(namespaceURI, tagName, m
     aybeType->IsNull() ? nullAtom : type, es); | 276     RefPtr<Element> element = document->createElementNS(namespaceURI, tagName, m
     aybeType->IsNull() ? nullAtom : type, es); | 
| 277     if (es.throwIfNeeded()) | 277     if (es.throwIfNeeded()) | 
| 278         return; | 278         return; | 
| 279     v8SetReturnValueFast(args, element.release(), document); | 279     v8SetReturnValueFast(args, element.release(), document); | 
| 280 } | 280 } | 
| 281 | 281 | 
| 282 } // namespace WebCore | 282 } // namespace WebCore | 
| OLD | NEW | 
|---|