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

Side by Side Diff: sky/engine/core/dom/Attr.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, 2 months 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 | « no previous file | sky/engine/core/dom/CharacterData.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 * (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, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void detachFromElement(); 45 void detachFromElement();
46 46
47 // FIXME(sky): Remove this. 47 // FIXME(sky): Remove this.
48 virtual const AtomicString& localName() const override { return m_name.local Name(); } 48 virtual const AtomicString& localName() const override { return m_name.local Name(); }
49 49
50 virtual void trace(Visitor*) override; 50 virtual void trace(Visitor*) override;
51 51
52 private: 52 private:
53 Attr(Element&, const QualifiedName&); 53 Attr(Element&, const QualifiedName&);
54 54
55 bool isElementNode() const WTF_DELETED_FUNCTION; // This will catch anyone d oing an unnecessary check. 55 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
56 56
57 virtual String nodeName() const override { return name(); } 57 virtual String nodeName() const override { return name(); }
58 virtual NodeType nodeType() const override { return ATTRIBUTE_NODE; } 58 virtual NodeType nodeType() const override { return ATTRIBUTE_NODE; }
59 59
60 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) override { return nullptr; } 60 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) override { return nullptr; }
61 61
62 virtual bool isAttributeNode() const override { return true; } 62 virtual bool isAttributeNode() const override { return true; }
63 63
64 RawPtrWillBeMember<Element> m_element; 64 RawPtrWillBeMember<Element> m_element;
65 QualifiedName m_name; 65 QualifiedName m_name;
66 }; 66 };
67 67
68 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); 68 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode());
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // Attr_h 72 #endif // Attr_h
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/dom/CharacterData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698