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

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

Issue 129173004: Update rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 if (section()->hasSameDirectionAs(table())) 82 if (section()->hasSameDirectionAs(table()))
83 return style()->borderEnd(); 83 return style()->borderEnd();
84 84
85 return style()->borderStart(); 85 return style()->borderStart();
86 } 86 }
87 87
88 const BorderValue& borderAdjoiningStartCell(const RenderTableCell*) const; 88 const BorderValue& borderAdjoiningStartCell(const RenderTableCell*) const;
89 const BorderValue& borderAdjoiningEndCell(const RenderTableCell*) const; 89 const BorderValue& borderAdjoiningEndCell(const RenderTableCell*) const;
90 90
91 private: 91 private:
92 virtual RenderObjectChildList* virtualChildren() { return children(); } 92 virtual RenderObjectChildList* virtualChildren() OVERRIDE { return children( ); }
93 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); } 93 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { retu rn children(); }
94 94
95 virtual const char* renderName() const { return (isAnonymous() || isPseudoEl ement()) ? "RenderTableRow (anonymous)" : "RenderTableRow"; } 95 virtual const char* renderName() const OVERRIDE { return (isAnonymous() || i sPseudoElement()) ? "RenderTableRow (anonymous)" : "RenderTableRow"; }
96 96
97 virtual bool isTableRow() const { return true; } 97 virtual bool isTableRow() const OVERRIDE { return true; }
98 98
99 virtual void willBeRemovedFromTree() OVERRIDE; 99 virtual void willBeRemovedFromTree() OVERRIDE;
100 100
101 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); 101 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0) OV ERRIDE;
102 virtual void layout(); 102 virtual void layout() OVERRIDE;
103 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const; 103 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const;
104 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 104 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE;
105 105
106 virtual LayerType layerTypeRequired() const OVERRIDE 106 virtual LayerType layerTypeRequired() const OVERRIDE
107 { 107 {
108 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up()) 108 if (hasTransform() || hasHiddenBackface() || hasClipPath() || createsGro up())
109 return NormalLayer; 109 return NormalLayer;
110 110
111 if (hasOverflowClip()) 111 if (hasOverflowClip())
112 return OverflowClipLayer; 112 return OverflowClipLayer;
113 113
114 return NoLayer; 114 return NoLayer;
115 } 115 }
116 116
117 virtual void paint(PaintInfo&, const LayoutPoint&); 117 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE;
118 118
119 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 119 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0) OVERRIDE;
120 120
121 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 121 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
122 122
123 RenderObjectChildList m_children; 123 RenderObjectChildList m_children;
124 unsigned m_rowIndex : 31; 124 unsigned m_rowIndex : 31;
125 }; 125 };
126 126
127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow()); 127 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderTableRow, isTableRow());
128 128
129 } // namespace WebCore 129 } // namespace WebCore
130 130
131 #endif // RenderTableRow_h 131 #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