| 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 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 StyleAffectedByEmpty = 1 << 1, | 83 StyleAffectedByEmpty = 1 << 1, |
| 84 IsInCanvasSubtree = 1 << 2, | 84 IsInCanvasSubtree = 1 << 2, |
| 85 ContainsFullScreenElement = 1 << 3, | 85 ContainsFullScreenElement = 1 << 3, |
| 86 IsInTopLayer = 1 << 4, | 86 IsInTopLayer = 1 << 4, |
| 87 HasPendingResources = 1 << 5, | 87 HasPendingResources = 1 << 5, |
| 88 | 88 |
| 89 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla
gs. | 89 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla
gs. |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 class Element : public ContainerNode { | 92 class Element : public ContainerNode { |
| 93 DEFINE_WRAPPERTYPEINFO(); |
| 93 public: | 94 public: |
| 94 static PassRefPtrWillBeRawPtr<Element> create(const QualifiedName&, Document
*); | 95 static PassRefPtrWillBeRawPtr<Element> create(const QualifiedName&, Document
*); |
| 95 virtual ~Element(); | 96 virtual ~Element(); |
| 96 | 97 |
| 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); | 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); |
| 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); | 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); |
| 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); | 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); |
| 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); | 101 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); |
| 101 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); | 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); |
| 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); | 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 856 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 856 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 857 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 857 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 858 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 858 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 859 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 859 { \ | 860 { \ |
| 860 return adoptRefWillBeNoop(new T(tagName, document)); \ | 861 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 861 } | 862 } |
| 862 | 863 |
| 863 } // namespace | 864 } // namespace |
| 864 | 865 |
| 865 #endif | 866 #endif // Element_h |
| OLD | NEW |