| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 50a90f83a8b3e7d61dc9ca0ea2432de4f6624a8d..4a60b9e3071ab502725b8451d463b03d930da386 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -1578,9 +1578,11 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change)
|
| if (RenderObject* renderer = this->renderer()) {
|
| if (localChange != NoChange || pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get()) || (change == Force && renderer->requiresForcedStyleRecalcPropagation()) || shouldNotifyRendererWithIdenticalStyles()) {
|
| renderer->setAnimatableStyle(newStyle.get());
|
| - } else if (needsStyleRecalc()) {
|
| + } else {
|
| // Although no change occurred, we use the new style so that the cousin style sharing code won't get
|
| // fooled into believing this style is the same.
|
| + // FIXME: We may be able to remove this hack, see discussion in
|
| + // https://codereview.chromium.org/30453002/
|
| renderer->setStyleInternal(newStyle.get());
|
| }
|
| }
|
|
|