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

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

Issue 2901473002: create promo for debug.
Patch Set: .. Created 3 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 | « third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h ('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/css/resolver/StyleResolver.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
index 2f576663e6ef833eda4cea6fa42d4172fb10743f..980b1e6d046093863ae2cd91e390fae1aac0e318 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp
@@ -1208,6 +1208,14 @@ StyleRuleKeyframes* StyleResolver::FindKeyframesRule(
element->GetTreeScope().GetScopedStyleResolver())
resolvers.push_back(scoped_resolver);
+ if (element->IsInShadowTree() &&
+ ToShadowRoot(element->GetTreeScope().RootNode()).GetType() ==
+ ShadowRootType::kUserAgent) {
+ ScopedStyleResolver* scoped_resolver = element->GetDocument().GetScopedStyleResolver();
+ scoped_resolver->AddKeyframeRules(*CSSDefaultStyleSheets::Instance().DefaultStyle());
+ resolvers.push_back(scoped_resolver);
+ }
+
for (auto& resolver : resolvers) {
if (StyleRuleKeyframes* keyframes_rule =
resolver->KeyframeStylesForAnimation(animation_name.Impl()))
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698