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

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

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 37
38 class RenderFlexibleBox : public RenderBlock { 38 class RenderFlexibleBox : public RenderBlock {
39 public: 39 public:
40 RenderFlexibleBox(Element*); 40 RenderFlexibleBox(Element*);
41 virtual ~RenderFlexibleBox(); 41 virtual ~RenderFlexibleBox();
42 42
43 static RenderFlexibleBox* createAnonymous(Document*); 43 static RenderFlexibleBox* createAnonymous(Document*);
44 44
45 virtual const char* renderName() const OVERRIDE; 45 virtual const char* renderName() const OVERRIDE;
46 46
47 virtual bool isFlexibleBox() const OVERRIDE { return true; } 47 virtual bool isFlexibleBox() const OVERRIDE FINAL { return true; }
48 virtual bool avoidsFloats() const OVERRIDE { return true; } 48 virtual bool avoidsFloats() const OVERRIDE FINAL { return true; }
49 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE { return false; } 49 virtual bool canCollapseAnonymousBlockChild() const OVERRIDE FINAL { return false; }
50 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE; 50 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE FINAL;
51 51
52 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE; 52 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const OVERRIDE;
53 virtual int firstLineBoxBaseline() const OVERRIDE; 53 virtual int firstLineBoxBaseline() const OVERRIDE;
54 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE; 54 virtual int inlineBlockBaseline(LineDirectionMode) const OVERRIDE;
55 55
56 virtual void paintChildren(PaintInfo& forSelf, const LayoutPoint&, PaintInfo & forChild, bool usePrintRect) OVERRIDE; 56 virtual void paintChildren(PaintInfo& forSelf, const LayoutPoint&, PaintInfo & forChild, bool usePrintRect) OVERRIDE FINAL;
57 57
58 bool isHorizontalFlow() const; 58 bool isHorizontalFlow() const;
59 59
60 protected: 60 protected:
61 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE; 61 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE;
62 virtual void computePreferredLogicalWidths() OVERRIDE; 62 virtual void computePreferredLogicalWidths() OVERRIDE;
63 63
64 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 64 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
65 65
66 private: 66 private:
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFlexibleBox()); 189 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isFlexibleBox());
190 return static_cast<const RenderFlexibleBox*>(object); 190 return static_cast<const RenderFlexibleBox*>(object);
191 } 191 }
192 192
193 // This will catch anyone doing an unnecessary cast. 193 // This will catch anyone doing an unnecessary cast.
194 void toRenderFlexibleBox(const RenderFlexibleBox*); 194 void toRenderFlexibleBox(const RenderFlexibleBox*);
195 195
196 } // namespace WebCore 196 } // namespace WebCore
197 197
198 #endif // RenderFlexibleBox_h 198 #endif // RenderFlexibleBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFileUploadControl.h ('k') | Source/core/rendering/RenderFlowThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698