| 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 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2007, 2009, 2014 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 virtual bool matchesReadWritePseudoClass() const override; | 60 virtual bool matchesReadWritePseudoClass() const override; |
| 61 | 61 |
| 62 static const AtomicString& eventParameterName(); | 62 static const AtomicString& eventParameterName(); |
| 63 | 63 |
| 64 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; | 64 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 67 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 bool isHTMLElement() const WTF_DELETED_FUNCTION; // This will catch anyone d
oing an unnecessary check. | 70 bool isHTMLElement() const = delete; // This will catch anyone doing an unne
cessary check. |
| 71 bool isStyledElement() const WTF_DELETED_FUNCTION; // This will catch anyone
doing an unnecessary check. | 71 bool isStyledElement() const = delete; // This will catch anyone doing an un
necessary check. |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); | 74 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); |
| 75 | 75 |
| 76 template <typename T> bool isElementOfType(const HTMLElement&); | 76 template <typename T> bool isElementOfType(const HTMLElement&); |
| 77 template <> inline bool isElementOfType<const HTMLElement>(const HTMLElement&) {
return true; } | 77 template <> inline bool isElementOfType<const HTMLElement>(const HTMLElement&) {
return true; } |
| 78 | 78 |
| 79 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) | 79 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) |
| 80 : Element(tagName, &document, type) | 80 : Element(tagName, &document, type) |
| 81 { | 81 { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 109 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 109 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 110 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 110 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 111 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 111 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
| 112 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 112 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| 115 | 115 |
| 116 #include "core/HTMLElementTypeHelpers.h" | 116 #include "core/HTMLElementTypeHelpers.h" |
| 117 | 117 |
| 118 #endif // HTMLElement_h | 118 #endif // HTMLElement_h |
| OLD | NEW |