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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 1201
1202 StyleRuleKeyframes* StyleResolver::FindKeyframesRule( 1202 StyleRuleKeyframes* StyleResolver::FindKeyframesRule(
1203 const Element* element, 1203 const Element* element,
1204 const AtomicString& animation_name) { 1204 const AtomicString& animation_name) {
1205 HeapVector<Member<ScopedStyleResolver>, 8> resolvers; 1205 HeapVector<Member<ScopedStyleResolver>, 8> resolvers;
1206 CollectScopedResolversForHostedShadowTrees(*element, resolvers); 1206 CollectScopedResolversForHostedShadowTrees(*element, resolvers);
1207 if (ScopedStyleResolver* scoped_resolver = 1207 if (ScopedStyleResolver* scoped_resolver =
1208 element->GetTreeScope().GetScopedStyleResolver()) 1208 element->GetTreeScope().GetScopedStyleResolver())
1209 resolvers.push_back(scoped_resolver); 1209 resolvers.push_back(scoped_resolver);
1210 1210
1211 if (element->IsInShadowTree() &&
1212 ToShadowRoot(element->GetTreeScope().RootNode()).GetType() ==
1213 ShadowRootType::kUserAgent) {
1214 ScopedStyleResolver* scoped_resolver = element->GetDocument().GetScopedStyle Resolver();
1215 scoped_resolver->AddKeyframeRules(*CSSDefaultStyleSheets::Instance().Default Style());
1216 resolvers.push_back(scoped_resolver);
1217 }
1218
1211 for (auto& resolver : resolvers) { 1219 for (auto& resolver : resolvers) {
1212 if (StyleRuleKeyframes* keyframes_rule = 1220 if (StyleRuleKeyframes* keyframes_rule =
1213 resolver->KeyframeStylesForAnimation(animation_name.Impl())) 1221 resolver->KeyframeStylesForAnimation(animation_name.Impl()))
1214 return keyframes_rule; 1222 return keyframes_rule;
1215 } 1223 }
1216 1224
1217 for (auto& resolver : resolvers) 1225 for (auto& resolver : resolvers)
1218 resolver->SetHasUnresolvedKeyframesRule(); 1226 resolver->SetHasUnresolvedKeyframesRule();
1219 return nullptr; 1227 return nullptr;
1220 } 1228 }
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 2043
2036 DEFINE_TRACE(StyleResolver) { 2044 DEFINE_TRACE(StyleResolver) {
2037 visitor->Trace(matched_properties_cache_); 2045 visitor->Trace(matched_properties_cache_);
2038 visitor->Trace(selector_filter_); 2046 visitor->Trace(selector_filter_);
2039 visitor->Trace(style_sharing_lists_); 2047 visitor->Trace(style_sharing_lists_);
2040 visitor->Trace(document_); 2048 visitor->Trace(document_);
2041 visitor->Trace(tracker_); 2049 visitor->Trace(tracker_);
2042 } 2050 }
2043 2051
2044 } // namespace blink 2052 } // namespace blink
OLDNEW
« 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