Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2492783002: Skip independent inherited property propagation to pseudo elements. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/independent-inherit-update-pseudo.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 469bc7a952c742e9449d340a4b81df0a039a8166..5bf73b380649be66edf05a06bc669c894d80a388 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1902,6 +1902,8 @@ PassRefPtr<ComputedStyle> Element::propagateInheritedProperties(
StyleRecalcChange change) {
if (change != IndependentInherit)
return nullptr;
+ if (isPseudoElement())
+ return nullptr;
if (needsStyleRecalc())
return nullptr;
if (hasAnimations())
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/independent-inherit-update-pseudo.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698