Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/Element.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
| index e785c06dfc53d2423487e8af18cf389fe9095aa8..bfe6476ed60a517b55de336e312b86abf4a445ac 100644 |
| --- a/third_party/WebKit/Source/core/dom/Element.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp |
| @@ -1791,7 +1791,8 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change) |
| updateCallbackSelectors(oldStyle.get(), newStyle.get()); |
| if (LayoutObject* layoutObject = this->layoutObject()) { |
| - if (localChange != NoChange || pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get()) || svgFilterNeedsLayerUpdate()) { |
| + bool pseudoStyleCacheIsInvalid = this->pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get()); |
| + if (localChange != NoChange || pseudoStyleCacheIsInvalid || svgFilterNeedsLayerUpdate()) { |
|
rune
2015/12/01 11:09:37
I'm a bit confused about the role of diffPseudoSty
Xianzhu
2015/12/01 20:06:25
I see diffPseudoStyles() compares cached pseudo st
Xianzhu
2015/12/01 20:19:09
I reverted the changes about early returns in the
|
| layoutObject->setStyle(newStyle.get()); |
| } else { |
| // Although no change occurred, we use the new style so that the cousin style sharing code won't get |