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

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

Issue 899753003: Walk render tree instead of render layers for paint. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: address review comments Created 5 years, 10 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() final;
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&) 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:
60 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override; 60 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override;
61 61
62 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride; 62 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride;
63 virtual void removeChild(RenderObject*) override; 63 virtual void removeChild(RenderObject*) override;
64 64
65 private: 65 private:
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 mutable OrderIterator m_orderIterator; 159 mutable OrderIterator m_orderIterator;
160 int m_numberOfInFlowChildrenOnFirstLine; 160 int m_numberOfInFlowChildrenOnFirstLine;
161 }; 161 };
162 162
163 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); 163 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox());
164 164
165 } // namespace blink 165 } // namespace blink
166 166
167 #endif // SKY_ENGINE_CORE_RENDERING_RENDERFLEXIBLEBOX_H_ 167 #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