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

Side by Side Diff: sky/engine/core/rendering/RenderFlexibleBox.h

Issue 1068683002: Delete RenderBlockFlow. (Closed) Base URL: https://github.com/domokit/mojo.git@block
Patch Set: Remove unused float-related code instead of moving it. Created 5 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
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 20 matching lines...) Expand all
31 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_ 31 #ifndef SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_
32 #define SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_ 32 #define SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_
33 33
34 #include "sky/engine/core/rendering/OrderIterator.h" 34 #include "sky/engine/core/rendering/OrderIterator.h"
35 #include "sky/engine/core/rendering/RenderBlock.h" 35 #include "sky/engine/core/rendering/RenderBlock.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class RenderFlexibleBox : public RenderBlock { 39 class RenderFlexibleBox : public RenderBlock {
40 public: 40 public:
41 RenderFlexibleBox(Element*); 41 RenderFlexibleBox(ContainerNode*);
42 virtual ~RenderFlexibleBox(); 42 virtual ~RenderFlexibleBox();
43 43
44 static RenderFlexibleBox* createAnonymous(Document*); 44 static RenderFlexibleBox* createAnonymous(Document*);
45 45
46 virtual const char* renderName() const override; 46 virtual const char* renderName() const override;
47 47
48 virtual bool isFlexibleBox() const override final { return true; } 48 virtual bool isFlexibleBox() const override final { return true; }
49 void layout() final; 49 void layout();
50 50
51 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override; 51 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override;
52 virtual int firstLineBoxBaseline() const override; 52 virtual int firstLineBoxBaseline() const override;
53 virtual int inlineBlockBaseline(LineDirectionMode) const override; 53 virtual int inlineBlockBaseline(LineDirectionMode) const override;
54 54
55 virtual void paintChildren(PaintInfo&, const LayoutPoint&, Vector<RenderBox* >& layers) override final; 55 virtual void paintChildren(PaintInfo&, const LayoutPoint&, Vector<RenderBox* >& layers) override final;
56 56
57 bool isHorizontalFlow() const; 57 bool isHorizontalFlow() const;
58 58
59 protected: 59 protected:
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 mutable OrderIterator m_orderIterator; 158 mutable OrderIterator m_orderIterator;
159 int m_numberOfInFlowChildrenOnFirstLine; 159 int m_numberOfInFlowChildrenOnFirstLine;
160 }; 160 };
161 161
162 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); 162 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox());
163 163
164 } // namespace blink 164 } // namespace blink
165 165
166 #endif // SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_ 166 #endif // SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/engine/core/rendering/RenderFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698