| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "sky/engine/core/dom/Element.h" | 26 #include "sky/engine/core/dom/Element.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 class HTMLElement : public Element { | 30 class HTMLElement : public Element { |
| 31 DEFINE_WRAPPERTYPEINFO(); | 31 DEFINE_WRAPPERTYPEINFO(); |
| 32 public: | 32 public: |
| 33 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLElement); | 33 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLElement); |
| 34 | 34 |
| 35 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; | |
| 36 | |
| 37 protected: | 35 protected: |
| 38 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 36 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 39 | 37 |
| 40 private: | 38 private: |
| 41 bool isHTMLElement() const = delete; // This will catch anyone doing an unne
cessary check. | 39 bool isHTMLElement() const = delete; // This will catch anyone doing an unne
cessary check. |
| 42 bool isStyledElement() const = delete; // This will catch anyone doing an un
necessary check. | 40 bool isStyledElement() const = delete; // This will catch anyone doing an un
necessary check. |
| 43 }; | 41 }; |
| 44 | 42 |
| 45 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); | 43 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); |
| 46 | 44 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 65 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 63 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 66 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 64 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 67 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 65 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
| 68 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 66 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 69 | 67 |
| 70 } // namespace blink | 68 } // namespace blink |
| 71 | 69 |
| 72 #include "gen/sky/core/HTMLElementTypeHelpers.h" | 70 #include "gen/sky/core/HTMLElementTypeHelpers.h" |
| 73 | 71 |
| 74 #endif // SKY_ENGINE_CORE_HTML_HTMLELEMENT_H_ | 72 #endif // SKY_ENGINE_CORE_HTML_HTMLELEMENT_H_ |
| OLD | NEW |