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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleResolver.h

Issue 1371723002: Devtools Animations: Add method to fetch CSS keyframed animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 UAAndUserCSSRules = 1 << 1, 128 UAAndUserCSSRules = 1 << 1,
129 AuthorCSSRules = 1 << 2, 129 AuthorCSSRules = 1 << 2,
130 EmptyCSSRules = 1 << 3, 130 EmptyCSSRules = 1 << 3,
131 CrossOriginCSSRules = 1 << 4, 131 CrossOriginCSSRules = 1 << 4,
132 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules, 132 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules,
133 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, 133 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules,
134 }; 134 };
135 PassRefPtrWillBeRawPtr<CSSRuleList> cssRulesForElement(Element*, unsigned ru lesToInclude = AllButEmptyCSSRules); 135 PassRefPtrWillBeRawPtr<CSSRuleList> cssRulesForElement(Element*, unsigned ru lesToInclude = AllButEmptyCSSRules);
136 PassRefPtrWillBeRawPtr<CSSRuleList> pseudoCSSRulesForElement(Element*, Pseud oId, unsigned rulesToInclude = AllButEmptyCSSRules); 136 PassRefPtrWillBeRawPtr<CSSRuleList> pseudoCSSRulesForElement(Element*, Pseud oId, unsigned rulesToInclude = AllButEmptyCSSRules);
137 PassRefPtrWillBeRawPtr<StyleRuleList> styleRulesForElement(Element*, unsigne d rulesToInclude); 137 PassRefPtrWillBeRawPtr<StyleRuleList> styleRulesForElement(Element*, unsigne d rulesToInclude);
138 PassRefPtrWillBeRawPtr<CSSRuleList> keyframesRulesForElement(Element*);
138 139
139 void computeFont(ComputedStyle*, const StylePropertySet&); 140 void computeFont(ComputedStyle*, const StylePropertySet&);
140 141
141 ViewportStyleResolver* viewportStyleResolver() { return m_viewportStyleResol ver.get(); } 142 ViewportStyleResolver* viewportStyleResolver() { return m_viewportStyleResol ver.get(); }
142 143
143 void addMediaQueryResults(const MediaQueryResultList&); 144 void addMediaQueryResults(const MediaQueryResultList&);
144 MediaQueryResultList* viewportDependentMediaQueryResults() { return &m_viewp ortDependentMediaQueryResults; } 145 MediaQueryResultList* viewportDependentMediaQueryResults() { return &m_viewp ortDependentMediaQueryResults; }
145 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM ediaQueryResults.isEmpty(); } 146 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM ediaQueryResults.isEmpty(); }
146 bool mediaQueryAffectedByViewportChange() const; 147 bool mediaQueryAffectedByViewportChange() const;
147 148
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone); 221 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelis tNone);
221 template <CSSPropertyPriority priority> 222 template <CSSPropertyPriority priority>
222 void applyAnimatedProperties(StyleResolverState&, const ActiveInterpolations Map&); 223 void applyAnimatedProperties(StyleResolverState&, const ActiveInterpolations Map&);
223 template <CSSPropertyPriority priority> 224 template <CSSPropertyPriority priority>
224 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly, Pr opertyWhitelistType); 225 void applyAllProperty(StyleResolverState&, CSSValue*, bool inheritedOnly, Pr opertyWhitelistType);
225 226
226 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, cons t ComputedStyle* parentStyle, StyleResolverState&); 227 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, cons t ComputedStyle* parentStyle, StyleResolverState&);
227 bool hasAuthorBackground(const StyleResolverState&); 228 bool hasAuthorBackground(const StyleResolverState&);
228 bool hasAuthorBorder(const StyleResolverState&); 229 bool hasAuthorBorder(const StyleResolverState&);
229 230
231 PassRefPtrWillBeRawPtr<CSSKeyframesRule> findCSSKeyframesRule(const Element* , const AtomicString& animationName);
232
230 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId); 233 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId);
231 234
232 Document& document() { return *m_document; } 235 Document& document() { return *m_document; }
233 236
234 static ComputedStyle* s_styleNotYetAvailable; 237 static ComputedStyle* s_styleNotYetAvailable;
235 238
236 MatchedPropertiesCache m_matchedPropertiesCache; 239 MatchedPropertiesCache m_matchedPropertiesCache;
237 240
238 OwnPtr<MediaQueryEvaluator> m_medium; 241 OwnPtr<MediaQueryEvaluator> m_medium;
239 MediaQueryResultList m_viewportDependentMediaQueryResults; 242 MediaQueryResultList m_viewportDependentMediaQueryResults;
(...skipping 23 matching lines...) Expand all
263 266
264 OwnPtr<StyleResolverStats> m_styleResolverStats; 267 OwnPtr<StyleResolverStats> m_styleResolverStats;
265 268
266 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 269 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
267 unsigned m_accessCount; 270 unsigned m_accessCount;
268 }; 271 };
269 272
270 } // namespace blink 273 } // namespace blink
271 274
272 #endif // StyleResolver_h 275 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698