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

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

Issue 1200233002: Use the baseline information exposed by C++ to pipe baseline data through RenderBox. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderFlexibleBox.cpp » ('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 29 matching lines...) Expand all
40 public: 40 public:
41 RenderFlexibleBox(ContainerNode*); 41 RenderFlexibleBox(ContainerNode*);
42 virtual ~RenderFlexibleBox(); 42 virtual ~RenderFlexibleBox();
43 43
44 virtual const char* renderName() const override; 44 virtual const char* renderName() const override;
45 45
46 virtual bool isFlexibleBox() const override final { return true; } 46 virtual bool isFlexibleBox() const override final { return true; }
47 void layout(); 47 void layout();
48 48
49 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override; 49 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override;
50 virtual int firstLineBoxBaseline() const override; 50 virtual int firstLineBoxBaseline(FontBaselineOrAuto baselineType) const over ride;
51 virtual int inlineBlockBaseline(LineDirectionMode) const override; 51 virtual int inlineBlockBaseline(LineDirectionMode) const override;
52 52
53 virtual void paintChildren(PaintInfo&, const LayoutPoint&, Vector<RenderBox* >& layers) override final; 53 virtual void paintChildren(PaintInfo&, const LayoutPoint&, Vector<RenderBox* >& layers) override final;
54 54
55 bool isHorizontalFlow() const; 55 bool isHorizontalFlow() const;
56 56
57 protected: 57 protected:
58 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override; 58 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override;
59 59
60 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride; 60 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 mutable OrderIterator m_orderIterator; 156 mutable OrderIterator m_orderIterator;
157 int m_numberOfInFlowChildrenOnFirstLine; 157 int m_numberOfInFlowChildrenOnFirstLine;
158 }; 158 };
159 159
160 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); 160 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox());
161 161
162 } // namespace blink 162 } // namespace blink
163 163
164 #endif // SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_ 164 #endif // SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.h ('k') | sky/engine/core/rendering/RenderFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698