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

Side by Side Diff: sky/engine/core/dom/Element.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/dom/DocumentFragment.h ('k') | sky/engine/core/dom/Text.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-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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 void classAttributeChanged(const AtomicString& newClassString); 418 void classAttributeChanged(const AtomicString& newClassString);
419 419
420 PassRefPtr<RenderStyle> originalStyleForRenderer(); 420 PassRefPtr<RenderStyle> originalStyleForRenderer();
421 421
422 private: 422 private:
423 bool hasElementFlag(ElementFlags mask) const { return hasRareData() && hasEl ementFlagInternal(mask); } 423 bool hasElementFlag(ElementFlags mask) const { return hasRareData() && hasEl ementFlagInternal(mask); }
424 void setElementFlag(ElementFlags, bool value = true); 424 void setElementFlag(ElementFlags, bool value = true);
425 void clearElementFlag(ElementFlags); 425 void clearElementFlag(ElementFlags);
426 bool hasElementFlagInternal(ElementFlags) const; 426 bool hasElementFlagInternal(ElementFlags) const;
427 427
428 bool isElementNode() const WTF_DELETED_FUNCTION; // This will catch anyone d oing an unnecessary check. 428 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
429 bool isDocumentFragment() const WTF_DELETED_FUNCTION; // This will catch any one doing an unnecessary check. 429 bool isDocumentFragment() const = delete; // This will catch anyone doing an unnecessary check.
430 bool isDocumentNode() const WTF_DELETED_FUNCTION; // This will catch anyone doing an unnecessary check. 430 bool isDocumentNode() const = delete; // This will catch anyone doing an unn ecessary check.
431 431
432 void styleAttributeChanged(const AtomicString& newStyleString); 432 void styleAttributeChanged(const AtomicString& newStyleString);
433 433
434 void inlineStyleChanged(); 434 void inlineStyleChanged();
435 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 435 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
436 void setInlineStyleFromString(const AtomicString&); 436 void setInlineStyleFromString(const AtomicString&);
437 437
438 StyleRecalcChange recalcOwnStyle(StyleRecalcChange); 438 StyleRecalcChange recalcOwnStyle(StyleRecalcChange);
439 void recalcChildStyle(StyleRecalcChange); 439 void recalcChildStyle(StyleRecalcChange);
440 440
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 688 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
689 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 689 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
690 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 690 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
691 { \ 691 { \
692 return adoptRefWillBeNoop(new T(tagName, document)); \ 692 return adoptRefWillBeNoop(new T(tagName, document)); \
693 } 693 }
694 694
695 } // namespace 695 } // namespace
696 696
697 #endif // Element_h 697 #endif // Element_h
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DocumentFragment.h ('k') | sky/engine/core/dom/Text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698