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

Side by Side Diff: sky/engine/core/rendering/RenderBlock.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/html/HTMLElement.h ('k') | sky/engine/core/rendering/RenderBox.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) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r ights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 protected: 60 protected:
61 explicit RenderBlock(ContainerNode*); 61 explicit RenderBlock(ContainerNode*);
62 virtual ~RenderBlock(); 62 virtual ~RenderBlock();
63 63
64 public: 64 public:
65 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); } 65 RenderObject* firstChild() const { ASSERT(children() == virtualChildren()); return children()->firstChild(); }
66 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); } 66 RenderObject* lastChild() const { ASSERT(children() == virtualChildren()); r eturn children()->lastChild(); }
67 67
68 // If you have a RenderBlock, use firstChild or lastChild instead. 68 // If you have a RenderBlock, use firstChild or lastChild instead.
69 void slowFirstChild() const WTF_DELETED_FUNCTION; 69 void slowFirstChild() const = delete;
70 void slowLastChild() const WTF_DELETED_FUNCTION; 70 void slowLastChild() const = delete;
71 71
72 const RenderObjectChildList* children() const { return &m_children; } 72 const RenderObjectChildList* children() const { return &m_children; }
73 RenderObjectChildList* children() { return &m_children; } 73 RenderObjectChildList* children() { return &m_children; }
74 74
75 bool beingDestroyed() const { return m_beingDestroyed; } 75 bool beingDestroyed() const { return m_beingDestroyed; }
76 76
77 // These two functions are overridden for inline-block. 77 // These two functions are overridden for inline-block.
78 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const override final; 78 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const override final;
79 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override; 79 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override;
80 80
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 // FIXME: This is temporary as we move code that accesses block flow 419 // FIXME: This is temporary as we move code that accesses block flow
420 // member variables out of RenderBlock and into RenderBlockFlow. 420 // member variables out of RenderBlock and into RenderBlockFlow.
421 friend class RenderBlockFlow; 421 friend class RenderBlockFlow;
422 }; 422 };
423 423
424 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock()); 424 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBlock, isRenderBlock());
425 425
426 } // namespace blink 426 } // namespace blink
427 427
428 #endif // RenderBlock_h 428 #endif // RenderBlock_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLElement.h ('k') | sky/engine/core/rendering/RenderBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698