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

Side by Side Diff: Source/core/rendering/RenderReplaced.h

Issue 237823002: Properly shrink stretched flexbox children on relayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made comments clearer Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | Source/core/rendering/RenderTextControl.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 protected: 44 protected:
45 virtual void willBeDestroyed() OVERRIDE; 45 virtual void willBeDestroyed() OVERRIDE;
46 46
47 virtual void layout() OVERRIDE; 47 virtual void layout() OVERRIDE;
48 48
49 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return m_intrinsic Size; } 49 virtual LayoutSize intrinsicSize() const OVERRIDE FINAL { return m_intrinsic Size; }
50 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio, bool& isPercentageIntrinsicSize) const OVERRIDE; 50 virtual void computeIntrinsicRatioInformation(FloatSize& intrinsicSize, doub le& intrinsicRatio, bool& isPercentageIntrinsicSize) const OVERRIDE;
51 51
52 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE FINAL; 52 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE FINAL;
53 53
54 virtual LayoutUnit intrinsicContentLogicalHeight() const { return intrinsicL ogicalHeight(); }
55
54 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); } 56 virtual LayoutUnit minimumReplacedHeight() const { return LayoutUnit(); }
55 57
56 virtual void setSelectionState(SelectionState) OVERRIDE FINAL; 58 virtual void setSelectionState(SelectionState) OVERRIDE FINAL;
57 59
58 bool isSelected() const; 60 bool isSelected() const;
59 61
60 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE; 62 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV ERRIDE;
61 63
62 void setIntrinsicSize(const LayoutSize& intrinsicSize) { m_intrinsicSize = i ntrinsicSize; } 64 void setIntrinsicSize(const LayoutSize& intrinsicSize) { m_intrinsicSize = i ntrinsicSize; }
63 virtual void intrinsicSizeChanged(); 65 virtual void intrinsicSizeChanged();
(...skipping 20 matching lines...) Expand all
84 86
85 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep aintContainer, bool clipToVisibleContent = true) OVERRIDE FINAL; 87 virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* rep aintContainer, bool clipToVisibleContent = true) OVERRIDE FINAL;
86 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const; 88 void computeAspectRatioInformationForRenderBox(RenderBox*, FloatSize& constr ainedSize, double& intrinsicRatio, bool& isPercentageIntrinsicSize) const;
87 89
88 mutable LayoutSize m_intrinsicSize; 90 mutable LayoutSize m_intrinsicSize;
89 }; 91 };
90 92
91 } 93 }
92 94
93 #endif 95 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderListBox.cpp ('k') | Source/core/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698