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

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

Issue 999963003: Add base LayoutStyle parameter to createAnimatableValueSnapshot() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missing include Created 5 years, 9 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 | Annotate | Revision Log
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // These should move to some global tree-walk state, or should be contained in a 102 // These should move to some global tree-walk state, or should be contained in a
103 // TreeWalkContext or similar which is passed in to StyleResolver methods wh en available. 103 // TreeWalkContext or similar which is passed in to StyleResolver methods wh en available.
104 // Using these during tree walk will allow style selector to optimize child and descendant selector lookups. 104 // Using these during tree walk will allow style selector to optimize child and descendant selector lookups.
105 void pushParentElement(Element&); 105 void pushParentElement(Element&);
106 void popParentElement(Element&); 106 void popParentElement(Element&);
107 107
108 PassRefPtr<LayoutStyle> styleForElement(Element*, LayoutStyle* parentStyle = 0, StyleSharingBehavior = AllowStyleSharing, 108 PassRefPtr<LayoutStyle> styleForElement(Element*, LayoutStyle* parentStyle = 0, StyleSharingBehavior = AllowStyleSharing,
109 RuleMatchingBehavior = MatchAllRules); 109 RuleMatchingBehavior = MatchAllRules);
110 110
111 PassRefPtr<LayoutStyle> styleForKeyframe(Element&, const LayoutStyle&, Layou tStyle* parentStyle, const StyleRuleKeyframe*, const AtomicString& animationName ); 111 PassRefPtr<LayoutStyle> styleForKeyframe(Element&, const LayoutStyle&, Layou tStyle* parentStyle, const StyleRuleKeyframe*, const AtomicString& animationName );
112 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot (Element&, CSSPropertyID, CSSValue*); 112 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot (Element&, const LayoutStyle* baseStyle, CSSPropertyID, CSSValue*);
113 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot (StyleResolverState&, CSSPropertyID, CSSValue*); 113 static PassRefPtrWillBeRawPtr<AnimatableValue> createAnimatableValueSnapshot (StyleResolverState&, CSSPropertyID, CSSValue*);
114 114
115 PassRefPtr<LayoutStyle> pseudoStyleForElement(Element*, const PseudoStyleReq uest&, LayoutStyle* parentStyle); 115 PassRefPtr<LayoutStyle> pseudoStyleForElement(Element*, const PseudoStyleReq uest&, LayoutStyle* parentStyle);
116 116
117 PassRefPtr<LayoutStyle> styleForPage(int pageIndex); 117 PassRefPtr<LayoutStyle> styleForPage(int pageIndex);
118 PassRefPtr<LayoutStyle> styleForText(Text*); 118 PassRefPtr<LayoutStyle> styleForText(Text*);
119 119
120 static PassRefPtr<LayoutStyle> styleForDocument(Document&); 120 static PassRefPtr<LayoutStyle> styleForDocument(Document&);
121 121
122 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte r we factor StyleResolver further. 122 // FIXME: It could be better to call appendAuthorStyleSheets() directly afte r we factor StyleResolver further.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 293 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
294 unsigned m_styleResolverStatsSequence; 294 unsigned m_styleResolverStatsSequence;
295 295
296 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 296 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
297 unsigned m_accessCount; 297 unsigned m_accessCount;
298 }; 298 };
299 299
300 } // namespace blink 300 } // namespace blink
301 301
302 #endif // StyleResolver_h 302 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableValueKeyframe.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698