Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: sky/engine/core/html/HTMLElement.h

Issue 673403002: Remove compiler feature detection for = delete (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Don't remove #define for FINAL Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/editing/PlainTextRange.h ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/editing/PlainTextRange.h ('k') | sky/engine/core/rendering/RenderBlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698