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

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

Issue 741893002: Remove canCollapseAnonymousBlockChild. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 28 matching lines...) Expand all
39 class RenderFlexibleBox : public RenderBlock { 39 class RenderFlexibleBox : public RenderBlock {
40 public: 40 public:
41 RenderFlexibleBox(Element*); 41 RenderFlexibleBox(Element*);
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 virtual bool canCollapseAnonymousBlockChild() const override { return false; }
50 virtual void layoutBlock(bool relayoutChildren) override final; 49 virtual void layoutBlock(bool relayoutChildren) override final;
51 50
52 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override; 51 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override;
53 virtual int firstLineBoxBaseline() const override; 52 virtual int firstLineBoxBaseline() const override;
54 virtual int inlineBlockBaseline(LineDirectionMode) const override; 53 virtual int inlineBlockBaseline(LineDirectionMode) const override;
55 54
56 virtual void paintChildren(PaintInfo&, const LayoutPoint&) override final; 55 virtual void paintChildren(PaintInfo&, const LayoutPoint&) override final;
57 56
58 bool isHorizontalFlow() const; 57 bool isHorizontalFlow() const;
59 58
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 158
160 mutable OrderIterator m_orderIterator; 159 mutable OrderIterator m_orderIterator;
161 int m_numberOfInFlowChildrenOnFirstLine; 160 int m_numberOfInFlowChildrenOnFirstLine;
162 }; 161 };
163 162
164 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); 163 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox());
165 164
166 } // namespace blink 165 } // namespace blink
167 166
168 #endif // RenderFlexibleBox_h 167 #endif // RenderFlexibleBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698