| Index: third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp b/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| index a71f6d0e2a62eb92cac95df45f5e8c38271077fa..ee1e506fa6f7d9a93e7ba1c538447324fe80eccf 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/line/RootInlineBox.cpp
|
| @@ -656,7 +656,7 @@ LayoutUnit RootInlineBox::verticalPositionForBox(InlineBox* box, VerticalPositio
|
| } else if (verticalAlign == VerticalAlignLength) {
|
| LayoutUnit lineHeight;
|
| // Per http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align: 'Percentages: refer to the 'line-height' of the element itself'.
|
| - if (boxModel.style()->getVerticalAlignLength().hasPercent())
|
| + if (boxModel.style()->getVerticalAlignLength().isPercentOrCalc())
|
| lineHeight = LayoutUnit(boxModel.style()->computedLineHeight());
|
| else
|
| lineHeight = boxModel.lineHeight(firstLine, lineDirection);
|
|
|