summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/layout_deprecated_flexible_box.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/layout_deprecated_flexible_box.h')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/layout_deprecated_flexible_box.h20
1 files changed, 2 insertions, 18 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_deprecated_flexible_box.h b/chromium/third_party/blink/renderer/core/layout/layout_deprecated_flexible_box.h
index d05ba26dc16..4ee630f91b7 100644
--- a/chromium/third_party/blink/renderer/core/layout/layout_deprecated_flexible_box.h
+++ b/chromium/third_party/blink/renderer/core/layout/layout_deprecated_flexible_box.h
@@ -33,7 +33,7 @@ class FlexBoxIterator;
// eventually be replaced by LayoutFlexibleBox.
class LayoutDeprecatedFlexibleBox final : public LayoutBlock {
public:
- LayoutDeprecatedFlexibleBox(Element&);
+ LayoutDeprecatedFlexibleBox(Element* element);
~LayoutDeprecatedFlexibleBox() override;
const char* GetName() const override { return "LayoutDeprecatedFlexibleBox"; }
@@ -42,38 +42,22 @@ class LayoutDeprecatedFlexibleBox final : public LayoutBlock {
const ComputedStyle& new_style) override;
void UpdateBlockLayout(bool relayout_children) override;
- void LayoutHorizontalBox(bool relayout_children);
void LayoutVerticalBox(bool relayout_children);
bool IsDeprecatedFlexibleBox() const override { return true; }
bool IsFlexibleBoxIncludingDeprecatedAndNG() const override { return true; }
- bool IsStretchingChildren() const { return stretching_children_; }
void PlaceChild(LayoutBox* child, const LayoutPoint& location);
private:
- void ComputeIntrinsicLogicalWidths(
- LayoutUnit& min_logical_width,
- LayoutUnit& max_logical_width) const override;
+ MinMaxSizes ComputeIntrinsicLogicalWidths() const override;
LayoutUnit AllowedChildFlex(LayoutBox* child, bool expanding);
- bool IsVertical() const {
- return StyleRef().BoxOrient() == EBoxOrient::kVertical;
- }
- bool IsHorizontal() const {
- return StyleRef().BoxOrient() == EBoxOrient::kHorizontal;
- }
-
void ApplyLineClamp(FlexBoxIterator&, bool relayout_children);
void ClearLineClamp();
-
- bool stretching_children_;
};
-DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutDeprecatedFlexibleBox,
- IsDeprecatedFlexibleBox());
-
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_LAYOUT_DEPRECATED_FLEXIBLE_BOX_H_