| Index: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| index 83ada0d1c1ff1e60c94ac40b967c080ed383f6d2..35509148ac0ab89ba718a446e33c0f733a6b6b26 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| @@ -322,9 +322,9 @@ static void adjustStyleForDisplay(ComputedStyle& style, const ComputedStyle& par
|
|
|
| // We want to count vertical percentage paddings/margins on flex items because our current
|
| // behavior is different from the spec and we want to gather compatibility data.
|
| - if (style.paddingBefore().hasPercent() || style.paddingAfter().hasPercent())
|
| + if (style.paddingBefore().isPercentOrCalc() || style.paddingAfter().isPercentOrCalc())
|
| UseCounter::count(document, UseCounter::FlexboxPercentagePaddingVertical);
|
| - if (style.marginBefore().hasPercent() || style.marginAfter().hasPercent())
|
| + if (style.marginBefore().isPercentOrCalc() || style.marginAfter().isPercentOrCalc())
|
| UseCounter::count(document, UseCounter::FlexboxPercentageMarginVertical);
|
| }
|
| }
|
|
|