| 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 e816e9f9953c41df489fafb57f01aef40ab71d00..a511338271628d6ccdb13a6921bfd03b32a1e540 100644
|
| --- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
|
| @@ -481,10 +481,11 @@ void StyleAdjuster::AdjustComputedStyle(StyleResolverState& state,
|
| const ComputedStyle& parent_style = *state.ParentStyle();
|
| const ComputedStyle& layout_parent_style = *state.LayoutParentStyle();
|
|
|
| + if (style.Display() != EDisplay::kNone && element &&
|
| + element->IsHTMLElement()) {
|
| + AdjustStyleForHTMLElement(style, ToHTMLElement(*element));
|
| + }
|
| if (style.Display() != EDisplay::kNone) {
|
| - if (element && element->IsHTMLElement())
|
| - AdjustStyleForHTMLElement(style, ToHTMLElement(*element));
|
| -
|
| // Per the spec, position 'static' and 'relative' in the top layer compute
|
| // to 'absolute'.
|
| if (IsInTopLayer(element, style) &&
|
|
|