OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 27 matching lines...) Expand all Loading... |
38 #include "bindings/v8/V8DOMWrapper.h" | 38 #include "bindings/v8/V8DOMWrapper.h" |
39 #include "core/dom/CustomElementConstructor.h" | 39 #include "core/dom/CustomElementConstructor.h" |
40 #include "core/dom/CustomElementRegistry.h" | 40 #include "core/dom/CustomElementRegistry.h" |
41 #include "core/dom/Document.h" | 41 #include "core/dom/Document.h" |
42 #include "core/dom/ExceptionCode.h" | 42 #include "core/dom/ExceptionCode.h" |
43 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
44 #include "wtf/PassRefPtr.h" | 44 #include "wtf/PassRefPtr.h" |
45 | 45 |
46 namespace WebCore { | 46 namespace WebCore { |
47 | 47 |
48 #if ENABLE(CUSTOM_ELEMENTS) | |
49 | |
50 class CustomElementConstructor; | 48 class CustomElementConstructor; |
51 class CustomElementInvocation; | 49 class CustomElementInvocation; |
52 class Element; | 50 class Element; |
53 class QualifiedName; | 51 class QualifiedName; |
54 class ScriptState; | 52 class ScriptState; |
55 | 53 |
56 class CustomElementHelpers { | 54 class CustomElementHelpers { |
57 public: | 55 public: |
58 static bool initializeConstructorWrapper(CustomElementConstructor*, const Sc
riptValue& prototype, ScriptState*); | 56 static bool initializeConstructorWrapper(CustomElementConstructor*, const Sc
riptValue& prototype, ScriptState*); |
59 static bool isValidPrototypeParameter(const ScriptValue&, ScriptState*, Atom
icString& namespaceURI); | 57 static bool isValidPrototypeParameter(const ScriptValue&, ScriptState*, Atom
icString& namespaceURI); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 return registry->findFor(element); | 91 return registry->findFor(element); |
94 return 0; | 92 return 0; |
95 } | 93 } |
96 | 94 |
97 inline bool CustomElementHelpers::isValidPrototypeParameter(const ScriptValue& v
alue, ScriptState* state) | 95 inline bool CustomElementHelpers::isValidPrototypeParameter(const ScriptValue& v
alue, ScriptState* state) |
98 { | 96 { |
99 AtomicString namespaceURI; | 97 AtomicString namespaceURI; |
100 return isValidPrototypeParameter(value, state, namespaceURI); | 98 return isValidPrototypeParameter(value, state, namespaceURI); |
101 } | 99 } |
102 | 100 |
103 #endif // ENABLE(CUSTOM_ELEMENTS) | |
104 | |
105 } // namespace WebCore | 101 } // namespace WebCore |
106 | 102 |
107 #endif // CustomElementHelpers_h | 103 #endif // CustomElementHelpers_h |
OLD | NEW |