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

Side by Side Diff: sky/engine/core/rendering/RenderMedia.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 | « sky/engine/core/rendering/RenderInline.h ('k') | sky/engine/core/rendering/RenderText.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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 class RenderMedia : public RenderImage { 35 class RenderMedia : public RenderImage {
36 public: 36 public:
37 explicit RenderMedia(HTMLMediaElement*); 37 explicit RenderMedia(HTMLMediaElement*);
38 virtual ~RenderMedia(); 38 virtual ~RenderMedia();
39 virtual void trace(Visitor*) override; 39 virtual void trace(Visitor*) override;
40 40
41 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 41 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
42 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 42 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
43 43
44 // If you have a RenderMedia, use firstChild or lastChild instead. 44 // If you have a RenderMedia, use firstChild or lastChild instead.
45 void slowFirstChild() const WTF_DELETED_FUNCTION; 45 void slowFirstChild() const = delete;
46 void slowLastChild() const WTF_DELETED_FUNCTION; 46 void slowLastChild() const = delete;
47 47
48 const RenderObjectChildList* children() const { return &m_children; } 48 const RenderObjectChildList* children() const { return &m_children; }
49 RenderObjectChildList* children() { return &m_children; } 49 RenderObjectChildList* children() { return &m_children; }
50 50
51 HTMLMediaElement* mediaElement() const; 51 HTMLMediaElement* mediaElement() const;
52 52
53 private: 53 private:
54 virtual RenderObjectChildList* virtualChildren() override final { return chi ldren(); } 54 virtual RenderObjectChildList* virtualChildren() override final { return chi ldren(); }
55 virtual const RenderObjectChildList* virtualChildren() const override final { return children(); } 55 virtual const RenderObjectChildList* virtualChildren() const override final { return children(); }
56 56
(...skipping 10 matching lines...) Expand all
67 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) override; 67 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) override;
68 68
69 RenderObjectChildList m_children; 69 RenderObjectChildList m_children;
70 }; 70 };
71 71
72 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMedia, isMedia()); 72 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMedia, isMedia());
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif // RenderMedia_h 76 #endif // RenderMedia_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderInline.h ('k') | sky/engine/core/rendering/RenderText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698