| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |