| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 v8::Local<v8::Object> data = v8::Local<v8::Object>::Cast(info.Data()); | 276 v8::Local<v8::Object> data = v8::Local<v8::Object>::Cast(info.Data()); |
| 277 Document* document = V8Document::toImpl(V8HiddenValue::getHiddenValue(script
State, data, V8HiddenValue::customElementDocument(isolate)).As<v8::Object>()); | 277 Document* document = V8Document::toImpl(V8HiddenValue::getHiddenValue(script
State, data, V8HiddenValue::customElementDocument(isolate)).As<v8::Object>()); |
| 278 TOSTRING_VOID(V8StringResource<>, namespaceURI, V8HiddenValue::getHiddenValu
e(scriptState, data, V8HiddenValue::customElementNamespaceURI(isolate))); | 278 TOSTRING_VOID(V8StringResource<>, namespaceURI, V8HiddenValue::getHiddenValu
e(scriptState, data, V8HiddenValue::customElementNamespaceURI(isolate))); |
| 279 TOSTRING_VOID(V8StringResource<>, tagName, V8HiddenValue::getHiddenValue(scr
iptState, data, V8HiddenValue::customElementTagName(isolate))); | 279 TOSTRING_VOID(V8StringResource<>, tagName, V8HiddenValue::getHiddenValue(scr
iptState, data, V8HiddenValue::customElementTagName(isolate))); |
| 280 v8::Local<v8::Value> maybeType = V8HiddenValue::getHiddenValue(scriptState,
data, V8HiddenValue::customElementType(isolate)); | 280 v8::Local<v8::Value> maybeType = V8HiddenValue::getHiddenValue(scriptState,
data, V8HiddenValue::customElementType(isolate)); |
| 281 TOSTRING_VOID(V8StringResource<>, type, maybeType); | 281 TOSTRING_VOID(V8StringResource<>, type, maybeType); |
| 282 | 282 |
| 283 ExceptionState exceptionState(ExceptionState::ConstructionContext, "CustomEl
ement", info.Holder(), info.GetIsolate()); | 283 ExceptionState exceptionState(ExceptionState::ConstructionContext, "CustomEl
ement", info.Holder(), info.GetIsolate()); |
| 284 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 284 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
| 285 Element* element = document->createElementNS(namespaceURI, tagName, maybeTyp
e->IsNull() ? nullAtom : type, exceptionState); | 285 Element* element = document->createElementNS(namespaceURI, tagName, maybeTyp
e->IsNull() ? nullAtom : type, exceptionState); |
| 286 if (exceptionState.throwIfNeeded()) | |
| 287 return; | |
| 288 v8SetReturnValueFast(info, element, document); | 286 v8SetReturnValueFast(info, element, document); |
| 289 } | 287 } |
| 290 | 288 |
| 291 } // namespace blink | 289 } // namespace blink |
| OLD | NEW |