| Index: Source/core/rendering/RenderBlock.cpp
|
| diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
|
| index 24f3f026f6c14b1e10536b4590f4c9f3dfa0b941..f9bb965ef3ef956ac69dd1fa0978788b3f485859 100644
|
| --- a/Source/core/rendering/RenderBlock.cpp
|
| +++ b/Source/core/rendering/RenderBlock.cpp
|
| @@ -5493,16 +5493,6 @@ int RenderBlock::baselinePosition(FontBaseline baselineType, bool firstLine, Lin
|
|
|
| int baselinePos = ignoreBaseline ? -1 : inlineBlockBaseline(direction);
|
|
|
| - if (isDeprecatedFlexibleBox()) {
|
| - // Historically, we did this check for all baselines. But we can't
|
| - // remove this code from deprecated flexbox, because it effectively
|
| - // breaks -webkit-line-clamp, which is used in the wild -- we would
|
| - // calculate the baseline as if -webkit-line-clamp wasn't used.
|
| - // For simplicity, we use this for all uses of deprecated flexbox.
|
| - LayoutUnit bottomOfContent = direction == HorizontalLine ? borderTop() + paddingTop() + contentHeight() : borderRight() + paddingRight() + contentWidth();
|
| - if (baselinePos > bottomOfContent)
|
| - baselinePos = -1;
|
| - }
|
| if (baselinePos != -1)
|
| return direction == HorizontalLine ? marginTop() + baselinePos : marginRight() + baselinePos;
|
|
|
|
|