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

Side by Side Diff: Source/core/layout/LayoutFlexibleBox.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/core/layout/LayoutFileUploadControl.h ('k') | Source/core/layout/LayoutFlowThread.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) 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 22 matching lines...) Expand all
33 33
34 #include "core/CoreExport.h" 34 #include "core/CoreExport.h"
35 #include "core/layout/LayoutBlock.h" 35 #include "core/layout/LayoutBlock.h"
36 #include "core/layout/OrderIterator.h" 36 #include "core/layout/OrderIterator.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class CORE_EXPORT LayoutFlexibleBox : public LayoutBlock { 40 class CORE_EXPORT LayoutFlexibleBox : public LayoutBlock {
41 public: 41 public:
42 LayoutFlexibleBox(Element*); 42 LayoutFlexibleBox(Element*);
43 virtual ~LayoutFlexibleBox(); 43 ~LayoutFlexibleBox() override;
44 44
45 static LayoutFlexibleBox* createAnonymous(Document*); 45 static LayoutFlexibleBox* createAnonymous(Document*);
46 46
47 virtual const char* name() const override { return "LayoutFlexibleBox"; } 47 const char* name() const override { return "LayoutFlexibleBox"; }
48 48
49 virtual bool isFlexibleBox() const override final { return true; } 49 bool isFlexibleBox() const final { return true; }
50 virtual bool canCollapseAnonymousBlockChild() const override { return false; } 50 bool canCollapseAnonymousBlockChild() const override { return false; }
51 virtual void layoutBlock(bool relayoutChildren) override final; 51 void layoutBlock(bool relayoutChildren) final;
52 52
53 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override; 53 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const override;
54 virtual int firstLineBoxBaseline() const override; 54 int firstLineBoxBaseline() const override;
55 virtual int inlineBlockBaseline(LineDirectionMode) const override; 55 int inlineBlockBaseline(LineDirectionMode) const override;
56 56
57 virtual void paintChildren(const PaintInfo&, const LayoutPoint&) override fi nal; 57 void paintChildren(const PaintInfo&, const LayoutPoint&) final;
58 58
59 bool isHorizontalFlow() const; 59 bool isHorizontalFlow() const;
60 60
61 OrderIterator& orderIterator() { return m_orderIterator; } 61 OrderIterator& orderIterator() { return m_orderIterator; }
62 62
63 protected: 63 protected:
64 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override; 64 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
65 65
66 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; 66 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override ;
67 virtual void removeChild(LayoutObject*) override; 67 void removeChild(LayoutObject*) override;
68 68
69 private: 69 private:
70 enum FlexSign { 70 enum FlexSign {
71 PositiveFlexibility, 71 PositiveFlexibility,
72 NegativeFlexibility, 72 NegativeFlexibility,
73 }; 73 };
74 74
75 enum PositionedLayoutMode { 75 enum PositionedLayoutMode {
76 FlipForRowReverse, 76 FlipForRowReverse,
77 NoFlipForRowReverse, 77 NoFlipForRowReverse,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 mutable OrderIterator m_orderIterator; 175 mutable OrderIterator m_orderIterator;
176 int m_numberOfInFlowChildrenOnFirstLine; 176 int m_numberOfInFlowChildrenOnFirstLine;
177 }; 177 };
178 178
179 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 179 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
180 180
181 } // namespace blink 181 } // namespace blink
182 182
183 #endif // LayoutFlexibleBox_h 183 #endif // LayoutFlexibleBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutFileUploadControl.h ('k') | Source/core/layout/LayoutFlowThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698