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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutReplaced.h

Issue 1868013002: Percent height in auto height containers no longer computes as auto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@303728-6
Patch Set: Updated Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutReplaced.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutReplaced.h b/third_party/WebKit/Source/core/layout/LayoutReplaced.h
index 35ac0c378ccc6f9add3cd4aa337f0290daf3ea50..492bf53c724189e1f92a42cb33d534474a8cdf2f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutReplaced.h
+++ b/third_party/WebKit/Source/core/layout/LayoutReplaced.h
@@ -52,8 +52,8 @@ public:
LayoutReplaced(Element*, const LayoutSize& intrinsicSize);
~LayoutReplaced() override;
- LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = ComputeActual) const override;
- LayoutUnit computeReplacedLogicalHeight() const override;
+ LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = ComputeActual) const override;
+ LayoutUnit computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidth = LayoutUnit()) const override;
bool hasReplacedLogicalHeight() const;
LayoutRect replacedContentRect(const LayoutSize* overriddenIntrinsicSize = nullptr) const;
@@ -126,6 +126,8 @@ private:
void computeIntrinsicSizingInfoForReplacedContent(LayoutReplaced*, IntrinsicSizingInfo&) const;
FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const;
+ LayoutUnit computeConstrainedLogicalWidth(ShouldComputePreferred) const;
+
mutable LayoutSize m_intrinsicSize;
};

Powered by Google App Engine
This is Rietveld 408576698