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

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

Issue 1149383003: Fix -webkit-* pseudo cannot match CSS animation name Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 6a3b2ac47f325aae8c9a7622a86f31013bde7b99..3a7f8670bc13f83f7537c17cb3eaf2d2120d5d53 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -992,6 +992,9 @@ StyleRuleKeyframes* StyleResolver::findKeyframesRule(const Element* element, con
if (ScopedStyleResolver* scopedResolver = element->treeScope().scopedStyleResolver())
resolvers.append(scopedResolver);
+ if (element->isInShadowTree() && toShadowRoot(element->treeScope().rootNode()).type() == ShadowRoot::UserAgentShadowRoot)
+ resolvers.append(element->document().scopedStyleResolver());
+
for (size_t i = 0; i < resolvers.size(); ++i) {
if (StyleRuleKeyframes* keyframesRule = resolvers[i]->keyframeStylesForAnimation(animationName.impl()))
return keyframesRule;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698