| Index: Source/core/css/invalidation/StyleInvalidator.cpp
|
| diff --git a/Source/core/css/invalidation/StyleInvalidator.cpp b/Source/core/css/invalidation/StyleInvalidator.cpp
|
| index d4a1d774ccf5525762250c45fba39c3a01a503d9..b2f94cd339c9464652f827fcda7ce6ef215aef00 100644
|
| --- a/Source/core/css/invalidation/StyleInvalidator.cpp
|
| +++ b/Source/core/css/invalidation/StyleInvalidator.cpp
|
| @@ -178,8 +178,8 @@ bool StyleInvalidator::invalidate(Element& element, StyleInvalidator::RecursionD
|
| element.setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::StyleInvalidator));
|
| } else if (recursionData.hasInvalidationSets() && someChildrenNeedStyleRecalc) {
|
| // Clone the ComputedStyle in order to preserve correct style sharing, if possible. Otherwise recalc style.
|
| - if (LayoutObject* renderer = element.layoutObject()) {
|
| - renderer->setStyleInternal(ComputedStyle::clone(renderer->styleRef()));
|
| + if (LayoutObject* layoutObject = element.layoutObject()) {
|
| + layoutObject->setStyleInternal(ComputedStyle::clone(layoutObject->styleRef()));
|
| } else {
|
| TRACE_STYLE_INVALIDATOR_INVALIDATION_IF_ENABLED(element, PreventStyleSharingForParent);
|
| element.setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::StyleInvalidator));
|
|
|