Chromium Code Reviews| Index: Source/core/dom/Element.cpp |
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
| index 9f85ee93bf3a2dc8e26e5ad49a0538bbbf05acbe..18be6c30110c7a777ea712efe9b4d62eac27b626 100644 |
| --- a/Source/core/dom/Element.cpp |
| +++ b/Source/core/dom/Element.cpp |
| @@ -1596,8 +1596,11 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change) |
| if (localChange == Reattach) { |
| AttachContext reattachContext; |
| reattachContext.resolvedStyle = newStyle.get(); |
| + bool rendererWillChange = needsAttach() || renderer(); |
| reattach(reattachContext); |
| - return Reattach; |
| + if (rendererWillChange || renderer()) |
|
esprehn
2014/03/06 19:40:24
You're going to reattach on the initial attach of
rune
2014/03/06 20:56:33
The problem is that !renderer() && needsAttach() a
|
| + return Reattach; |
| + return ReattachNoRenderer; |
| } |
| ASSERT(oldStyle); |