| Index: third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| index 22d3bcae0dd8e54b5cf8c1d84e881da2d494bbac..0a1eaf60333bcd2e879a16c411c23d74b1f54bc2 100644
|
| --- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| @@ -880,7 +880,7 @@ float TextAutosizer::widthFromBlock(const LayoutBlock* block) const
|
| if ((width = specifiedWidth.value()) > 0)
|
| return width;
|
| }
|
| - if (specifiedWidth.hasPercent()) {
|
| + if (specifiedWidth.isPercentOrCalc()) {
|
| if (float containerWidth = block->containingBlock()->contentLogicalWidth().toFloat()) {
|
| if ((width = floatValueForLength(specifiedWidth, containerWidth)) > 0)
|
| return width;
|
|
|