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

Side by Side Diff: Source/core/rendering/RenderTableRow.h

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch 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 | « Source/core/rendering/RenderTableCol.h ('k') | Source/core/rendering/RenderTableSection.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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 Apple Inc. All rights reserv ed.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 14 matching lines...) Expand all
25 #ifndef RenderTableRow_h 25 #ifndef RenderTableRow_h
26 #define RenderTableRow_h 26 #define RenderTableRow_h
27 27
28 #include "core/rendering/RenderTableSection.h" 28 #include "core/rendering/RenderTableSection.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 static const unsigned unsetRowIndex = 0x7FFFFFFF; 32 static const unsigned unsetRowIndex = 0x7FFFFFFF;
33 static const unsigned maxRowIndex = 0x7FFFFFFE; // 2,147,483,646 33 static const unsigned maxRowIndex = 0x7FFFFFFE; // 2,147,483,646
34 34
35 class RenderTableRow FINAL : public RenderBox { 35 class RenderTableRow final : public RenderBox {
36 public: 36 public:
37 explicit RenderTableRow(Element*); 37 explicit RenderTableRow(Element*);
38 virtual void trace(Visitor*) OVERRIDE; 38 virtual void trace(Visitor*) override;
39 39
40 RenderTableCell* firstCell() const; 40 RenderTableCell* firstCell() const;
41 RenderTableCell* lastCell() const; 41 RenderTableCell* lastCell() const;
42 42
43 RenderTableRow* previousRow() const; 43 RenderTableRow* previousRow() const;
44 RenderTableRow* nextRow() const; 44 RenderTableRow* nextRow() const;
45 45
46 const RenderObjectChildList* children() const { return &m_children; } 46 const RenderObjectChildList* children() const { return &m_children; }
47 RenderObjectChildList* children() { return &m_children; } 47 RenderObjectChildList* children() { return &m_children; }
48 48
49 RenderTableSection* section() const { return toRenderTableSection(parent()); } 49 RenderTableSection* section() const { return toRenderTableSection(parent()); }
50 RenderTable* table() const { return toRenderTable(parent()->parent()); } 50 RenderTable* table() const { return toRenderTable(parent()->parent()); }
51 51
52 static RenderTableRow* createAnonymous(Document*); 52 static RenderTableRow* createAnonymous(Document*);
53 static RenderTableRow* createAnonymousWithParentRenderer(const RenderObject* ); 53 static RenderTableRow* createAnonymousWithParentRenderer(const RenderObject* );
54 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* pare nt) const OVERRIDE 54 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject* pare nt) const override
55 { 55 {
56 return createAnonymousWithParentRenderer(parent); 56 return createAnonymousWithParentRenderer(parent);
57 } 57 }
58 58
59 void setRowIndex(unsigned rowIndex) 59 void setRowIndex(unsigned rowIndex)
60 { 60 {
61 if (UNLIKELY(rowIndex > maxRowIndex)) 61 if (UNLIKELY(rowIndex > maxRowIndex))
62 CRASH(); 62 CRASH();
63 63
64 m_rowIndex = rowIndex; 64 m_rowIndex = rowIndex;
(...skipping 19 matching lines...) Expand all
84 { 84 {
85 if (section()->hasSameDirectionAs(table())) 85 if (section()->hasSameDirectionAs(table()))
86 return style()->borderEnd(); 86 return style()->borderEnd();
87 87
88 return style()->borderStart(); 88 return style()->borderStart();
89 } 89 }
90 90
91 const BorderValue& borderAdjoiningStartCell(const RenderTableCell*) const; 91 const BorderValue& borderAdjoiningStartCell(const RenderTableCell*) const;
92 const BorderValue& borderAdjoiningEndCell(const RenderTableCell*) const; 92 const BorderValue& borderAdjoiningEndCell(const RenderTableCell*) const;
93 93
94 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 94 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) override;
95 95
96 private: 96 private:
97 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); } 97 virtual RenderObjectChildList* virtualChildren() override { return children( ); }
98 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); } 98 virtual const RenderObjectChildList* virtualChildren() const override { retu rn children(); }
99 99
100 virtual const char* renderName() const OVERRIDE { return (isAnonymous() || i sPseudoElement()) ? "RenderTableRow (anonymous)" : "RenderTableRow"; } 100 virtual const char* renderName() const override { return (isAnonymous() || i sPseudoElement()) ? "RenderTableRow (anonymous)" : "RenderTableRow"; }
101 101
102 virtual bool isTableRow() const OVERRIDE { return true; } 102 virtual bool isTableRow() const override { return true; }
103 103
104 virtual void willBeRemovedFromTree() OVERRIDE; 104 virtual void willBeRemovedFromTree() override;
105 105
106 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE; 106 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) ov erride;
107 virtual void layout() OVERRIDE; 107 virtual void layout() override;
108 108
109 virtual LayerType layerTypeRequired() const OVERRIDE 109 virtual LayerType layerTypeRequired() const override
110 { 110 {
111 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up() || style()->shouldCompositeForCurrentAnimations()) 111 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up() || style()->shouldCompositeForCurrentAnimations())
112 return NormalLayer; 112 return NormalLayer;
113 113
114 if (hasOverflowClip()) 114 if (hasOverflowClip())
115 return OverflowClipLayer; 115 return OverflowClipLayer;
116 116
117 return NoLayer; 117 return NoLayer;
118 } 118 }
119 119
120 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; 120 virtual void paint(PaintInfo&, const LayoutPoint&) override;
121 121
122 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE; 122 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) override;
123 123
124 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 124 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride;
125 125
126 void nextSibling() const WTF_DELETED_FUNCTION; 126 void nextSibling() const WTF_DELETED_FUNCTION;
127 void previousSibling() const WTF_DELETED_FUNCTION; 127 void previousSibling() const WTF_DELETED_FUNCTION;
128 128
129 RenderObjectChildList m_children; 129 RenderObjectChildList m_children;
130 unsigned m_rowIndex : 31; 130 unsigned m_rowIndex : 31;
131 }; 131 };
132 132
133 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow()); 133 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow());
134 134
(...skipping 15 matching lines...) Expand all
150 150
151 inline RenderTableRow* RenderTableSection::lastRow() const 151 inline RenderTableRow* RenderTableSection::lastRow() const
152 { 152 {
153 ASSERT(children() == virtualChildren()); 153 ASSERT(children() == virtualChildren());
154 return toRenderTableRow(children()->lastChild()); 154 return toRenderTableRow(children()->lastChild());
155 } 155 }
156 156
157 } // namespace blink 157 } // namespace blink
158 158
159 #endif // RenderTableRow_h 159 #endif // RenderTableRow_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCol.h ('k') | Source/core/rendering/RenderTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698