| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 return HTMLElementFactory::createHTMLElement(name, *this, false); | 441 return HTMLElementFactory::createHTMLElement(name, *this, false); |
| 442 | 442 |
| 443 return Element::create(QualifiedName(name), this); | 443 return Element::create(QualifiedName(name), this); |
| 444 } | 444 } |
| 445 | 445 |
| 446 ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicStri
ng& name, ExceptionState& exceptionState) | 446 ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicStri
ng& name, ExceptionState& exceptionState) |
| 447 { | 447 { |
| 448 return registerElement(scriptState, name, Dictionary(), exceptionState); | 448 return registerElement(scriptState, name, Dictionary(), exceptionState); |
| 449 } | 449 } |
| 450 | 450 |
| 451 ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicStri
ng& name, const Dictionary& options, ExceptionState& exceptionState, CustomEleme
nt::NameSet validNames) | 451 ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicStri
ng& name, const Dictionary& options, ExceptionState& exceptionState) |
| 452 { | 452 { |
| 453 if (!registrationContext()) { | 453 if (!registrationContext()) { |
| 454 exceptionState.throwDOMException(NotSupportedError, "No element registra
tion context is available."); | 454 exceptionState.throwDOMException(NotSupportedError, "No element registra
tion context is available."); |
| 455 return ScriptValue(); | 455 return ScriptValue(); |
| 456 } | 456 } |
| 457 | 457 |
| 458 CustomElementConstructorBuilder constructorBuilder(scriptState, &options); | 458 CustomElementConstructorBuilder constructorBuilder(scriptState, &options); |
| 459 registrationContext()->registerElement(this, &constructorBuilder, name, vali
dNames, exceptionState); | 459 registrationContext()->registerElement(this, &constructorBuilder, name, exce
ptionState); |
| 460 return constructorBuilder.bindingsReturnValue(); | 460 return constructorBuilder.bindingsReturnValue(); |
| 461 } | 461 } |
| 462 | 462 |
| 463 CustomElementMicrotaskRunQueue* Document::customElementMicrotaskRunQueue() | 463 CustomElementMicrotaskRunQueue* Document::customElementMicrotaskRunQueue() |
| 464 { | 464 { |
| 465 if (!m_customElementMicrotaskRunQueue) | 465 if (!m_customElementMicrotaskRunQueue) |
| 466 m_customElementMicrotaskRunQueue = CustomElementMicrotaskRunQueue::creat
e(); | 466 m_customElementMicrotaskRunQueue = CustomElementMicrotaskRunQueue::creat
e(); |
| 467 return m_customElementMicrotaskRunQueue.get(); | 467 return m_customElementMicrotaskRunQueue.get(); |
| 468 } | 468 } |
| 469 | 469 |
| (...skipping 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 using namespace blink; | 2640 using namespace blink; |
| 2641 void showLiveDocumentInstances() | 2641 void showLiveDocumentInstances() |
| 2642 { | 2642 { |
| 2643 WeakDocumentSet& set = liveDocumentSet(); | 2643 WeakDocumentSet& set = liveDocumentSet(); |
| 2644 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 2644 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 2645 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { | 2645 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it
) { |
| 2646 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); | 2646 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut
f8().data()); |
| 2647 } | 2647 } |
| 2648 } | 2648 } |
| 2649 #endif | 2649 #endif |
| OLD | NEW |