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

Unified Diff: Source/core/css/StyleResolver.cpp

Issue 14846002: Implement the Custom Elements :unresolved pseudoclass (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adds a test and fixes style sharing. Created 7 years, 8 months 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
Index: Source/core/css/StyleResolver.cpp
diff --git a/Source/core/css/StyleResolver.cpp b/Source/core/css/StyleResolver.cpp
index fe48ec0901827d6536604c615308f7e9e59ca2ce..ccd516bd86452dc9e41fc391ad45bb5e24f12799 100644
--- a/Source/core/css/StyleResolver.cpp
+++ b/Source/core/css/StyleResolver.cpp
@@ -865,6 +865,9 @@ bool StyleResolver::canShareStyleWithElement(StyledElement* element) const
if (element->isLink() && state.elementLinkState() != style->insideLink())
return false;
+ if (element->isUnresolvedCustomElement() != state.element()->isUnresolvedCustomElement())
+ return false;
+
// Deny sharing styles between WebVTT and non-WebVTT nodes.
if (element->isWebVTTElement() != state.element()->isWebVTTElement())
return false;

Powered by Google App Engine
This is Rietveld 408576698