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

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

Issue 2511073002: 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 3bef135738b4aeeeb1dbf0b521da5c59815a5f7c..08464475358402cd9e354cb7cb0eba9038279b15 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1905,6 +1905,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