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()); |
chrishtr
2015/12/01 01:43:11
this-> not necessary?
Also, that pseudoStyleCache
Xianzhu
2015/12/01 20:06:25
Done.
|
+ if (localChange != NoChange || pseudoStyleCacheIsInvalid || svgFilterNeedsLayerUpdate()) { |
layoutObject->setStyle(newStyle.get()); |
} else { |
// Although no change occurred, we use the new style so that the cousin style sharing code won't get |