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

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

Issue 814083003: Update animation when changes in animation keyframes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void resetAuthorStyle(TreeScope&); 123 void resetAuthorStyle(TreeScope&);
124 void finishAppendAuthorStyleSheets(); 124 void finishAppendAuthorStyleSheets();
125 125
126 void lazyAppendAuthorStyleSheets(unsigned firstNew, const WillBeHeapVector<R efPtrWillBeMember<CSSStyleSheet> >&); 126 void lazyAppendAuthorStyleSheets(unsigned firstNew, const WillBeHeapVector<R efPtrWillBeMember<CSSStyleSheet> >&);
127 void removePendingAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMembe r<CSSStyleSheet> >&); 127 void removePendingAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMembe r<CSSStyleSheet> >&);
128 void appendPendingAuthorStyleSheets(); 128 void appendPendingAuthorStyleSheets();
129 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size( ) > 0 || m_needCollectFeatures; } 129 bool hasPendingAuthorStyleSheets() const { return m_pendingStyleSheets.size( ) > 0 || m_needCollectFeatures; }
130 130
131 SelectorFilter& selectorFilter() { return m_selectorFilter; } 131 SelectorFilter& selectorFilter() { return m_selectorFilter; }
132 132
133 const StyleRuleKeyframes* findKeyframesRule(const Element*, const AtomicStri ng& animationName); 133 PassRefPtrWillBeRawPtr<StyleRuleKeyframes> findKeyframesRule(const Element*, const AtomicString& animationName);
134 134
135 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element). 135 // These methods will give back the set of rules that matched for a given el ement (or a pseudo-element).
136 enum CSSRuleFilter { 136 enum CSSRuleFilter {
137 UAAndUserCSSRules = 1 << 1, 137 UAAndUserCSSRules = 1 << 1,
138 AuthorCSSRules = 1 << 2, 138 AuthorCSSRules = 1 << 2,
139 EmptyCSSRules = 1 << 3, 139 EmptyCSSRules = 1 << 3,
140 CrossOriginCSSRules = 1 << 4, 140 CrossOriginCSSRules = 1 << 4,
141 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules, 141 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS SRules,
142 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, 142 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules,
143 }; 143 };
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 299 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
300 unsigned m_styleResolverStatsSequence; 300 unsigned m_styleResolverStatsSequence;
301 301
302 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 302 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
303 unsigned m_accessCount; 303 unsigned m_accessCount;
304 }; 304 };
305 305
306 } // namespace blink 306 } // namespace blink
307 307
308 #endif // StyleResolver_h 308 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698