| 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 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 v8::Local<v8::Value> WebDocument::registerEmbedderCustomElement(const WebString&
name, v8::Local<v8::Value> options, WebExceptionCode& ec) | 292 v8::Local<v8::Value> WebDocument::registerEmbedderCustomElement(const WebString&
name, v8::Local<v8::Value> options, WebExceptionCode& ec) |
| 293 { | 293 { |
| 294 v8::Isolate* isolate = v8::Isolate::GetCurrent(); | 294 v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
| 295 Document* document = unwrap<Document>(); | 295 Document* document = unwrap<Document>(); |
| 296 TrackExceptionState exceptionState; | 296 TrackExceptionState exceptionState; |
| 297 ElementRegistrationOptions registrationOptions; | 297 ElementRegistrationOptions registrationOptions; |
| 298 V8ElementRegistrationOptions::toImpl(isolate, options, registrationOptions,
exceptionState); | 298 V8ElementRegistrationOptions::toImpl(isolate, options, registrationOptions,
exceptionState); |
| 299 if (exceptionState.hadException()) | 299 if (exceptionState.hadException()) |
| 300 return v8::Local<v8::Value>(); | 300 return v8::Local<v8::Value>(); |
| 301 ScriptValue constructor = document->registerElement(ScriptState::current(iso
late), name, registrationOptions, exceptionState, CustomElement::EmbedderNames); | 301 ScriptValue constructor = document->registerElement(ScriptState::current(iso
late), name, registrationOptions, exceptionState, V0CustomElement::EmbedderNames
); |
| 302 ec = exceptionState.code(); | 302 ec = exceptionState.code(); |
| 303 if (exceptionState.hadException()) | 303 if (exceptionState.hadException()) |
| 304 return v8::Local<v8::Value>(); | 304 return v8::Local<v8::Value>(); |
| 305 return constructor.v8Value(); | 305 return constructor.v8Value(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 WebURL WebDocument::manifestURL() const | 308 WebURL WebDocument::manifestURL() const |
| 309 { | 309 { |
| 310 const Document* document = constUnwrap<Document>(); | 310 const Document* document = constUnwrap<Document>(); |
| 311 HTMLLinkElement* linkElement = document->linkManifest(); | 311 HTMLLinkElement* linkElement = document->linkManifest(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 340 m_private = elem; | 340 m_private = elem; |
| 341 return *this; | 341 return *this; |
| 342 } | 342 } |
| 343 | 343 |
| 344 WebDocument::operator Document*() const | 344 WebDocument::operator Document*() const |
| 345 { | 345 { |
| 346 return toDocument(m_private.get()); | 346 return toDocument(m_private.get()); |
| 347 } | 347 } |
| 348 | 348 |
| 349 } // namespace blink | 349 } // namespace blink |
| OLD | NEW |