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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicStri
ng& name, const ElementRegistrationOptions& options, ExceptionState& exceptionSt
ate, V0CustomElement::NameSet validNames) | 735 ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicStri
ng& name, const ElementRegistrationOptions& options, ExceptionState& exceptionSt
ate, V0CustomElement::NameSet validNames) |
736 { | 736 { |
737 OriginsUsingFeatures::countMainWorldOnly(scriptState, *this, OriginsUsingFea
tures::Feature::DocumentRegisterElement); | 737 OriginsUsingFeatures::countMainWorldOnly(scriptState, *this, OriginsUsingFea
tures::Feature::DocumentRegisterElement); |
738 | 738 |
739 if (!registrationContext()) { | 739 if (!registrationContext()) { |
740 exceptionState.throwDOMException(NotSupportedError, "No element registra
tion context is available."); | 740 exceptionState.throwDOMException(NotSupportedError, "No element registra
tion context is available."); |
741 return ScriptValue(); | 741 return ScriptValue(); |
742 } | 742 } |
743 | 743 |
744 V0CustomElementConstructorBuilder constructorBuilder(scriptState, options); | 744 V0CustomElementConstructorBuilder constructorBuilder(scriptState, options); |
745 registrationContext()->registerElement(this, &constructorBuilder, name, vali
dNames, exceptionState); | 745 registrationContext()->registerElement(scriptState, this, &constructorBuilde
r, name, validNames, exceptionState); |
746 return constructorBuilder.bindingsReturnValue(); | 746 return constructorBuilder.bindingsReturnValue(); |
747 } | 747 } |
748 | 748 |
749 V0CustomElementMicrotaskRunQueue* Document::customElementMicrotaskRunQueue() | 749 V0CustomElementMicrotaskRunQueue* Document::customElementMicrotaskRunQueue() |
750 { | 750 { |
751 if (!m_customElementMicrotaskRunQueue) | 751 if (!m_customElementMicrotaskRunQueue) |
752 m_customElementMicrotaskRunQueue = V0CustomElementMicrotaskRunQueue::cre
ate(); | 752 m_customElementMicrotaskRunQueue = V0CustomElementMicrotaskRunQueue::cre
ate(); |
753 return m_customElementMicrotaskRunQueue.get(); | 753 return m_customElementMicrotaskRunQueue.get(); |
754 } | 754 } |
755 | 755 |
(...skipping 5224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5980 #ifndef NDEBUG | 5980 #ifndef NDEBUG |
5981 using namespace blink; | 5981 using namespace blink; |
5982 void showLiveDocumentInstances() | 5982 void showLiveDocumentInstances() |
5983 { | 5983 { |
5984 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5984 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
5985 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5985 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
5986 for (Document* document : set) | 5986 for (Document* document : set) |
5987 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 5987 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
5988 } | 5988 } |
5989 #endif | 5989 #endif |
OLD | NEW |