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

Side by Side Diff: sky/engine/core/css/resolver/StyleResolver.h

Issue 825433003: Put the StyleResourceLoader on the stack. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | 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 * 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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 * 19 *
20 */ 20 */
21 21
22 #ifndef SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ 22 #ifndef SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_
23 #define SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ 23 #define SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_
24 24
25 #include "sky/engine/core/css/MediaQueryEvaluator.h" 25 #include "sky/engine/core/css/MediaQueryEvaluator.h"
26 #include "sky/engine/core/css/resolver/MatchedPropertiesCache.h" 26 #include "sky/engine/core/css/resolver/MatchedPropertiesCache.h"
27 #include "sky/engine/core/css/resolver/ScopedStyleResolver.h" 27 #include "sky/engine/core/css/resolver/ScopedStyleResolver.h"
28 #include "sky/engine/core/css/resolver/StyleResourceLoader.h"
29 #include "sky/engine/platform/heap/Handle.h" 28 #include "sky/engine/platform/heap/Handle.h"
30 #include "sky/engine/wtf/Deque.h" 29 #include "sky/engine/wtf/Deque.h"
31 #include "sky/engine/wtf/HashMap.h" 30 #include "sky/engine/wtf/HashMap.h"
32 #include "sky/engine/wtf/RefPtr.h" 31 #include "sky/engine/wtf/RefPtr.h"
33 #include "sky/engine/wtf/Vector.h" 32 #include "sky/engine/wtf/Vector.h"
34 33
35 namespace blink { 34 namespace blink {
36 35
37 class AnimatableValue; 36 class AnimatableValue;
38 class CSSValue; 37 class CSSValue;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly); 134 void applyMatchedProperties(StyleResolverState&, const MatchResult&, bool im portant, int startIndex, int endIndex, bool inheritedOnly);
136 template <StyleApplicationPass pass> 135 template <StyleApplicationPass pass>
137 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly); 136 void applyProperties(StyleResolverState&, const StylePropertySet* properties , bool isImportant, bool inheritedOnly);
138 template <StyleApplicationPass pass> 137 template <StyleApplicationPass pass>
139 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI D, RefPtr<Interpolation> >&); 138 void applyAnimatedProperties(StyleResolverState&, const HashMap<CSSPropertyI D, RefPtr<Interpolation> >&);
140 template <StyleResolver::StyleApplicationPass pass> 139 template <StyleResolver::StyleApplicationPass pass>
141 void applyAllProperty(StyleResolverState&, CSSValue*); 140 void applyAllProperty(StyleResolverState&, CSSValue*);
142 141
143 MatchedPropertiesCache m_matchedPropertiesCache; 142 MatchedPropertiesCache m_matchedPropertiesCache;
144 143
145 OwnPtr<MediaQueryEvaluator> m_medium;
146
147 RawPtr<Document> m_document; 144 RawPtr<Document> m_document;
148 145
149 StyleResourceLoader m_styleResourceLoader;
150
151 StyleSharingList m_styleSharingList; 146 StyleSharingList m_styleSharingList;
152 147
153 OwnPtr<StyleResolverStats> m_styleResolverStats; 148 OwnPtr<StyleResolverStats> m_styleResolverStats;
154 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 149 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
155 unsigned m_styleResolverStatsSequence; 150 unsigned m_styleResolverStatsSequence;
156 151
157 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 152 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
158 unsigned m_accessCount; 153 unsigned m_accessCount;
159 }; 154 };
160 155
161 } // namespace blink 156 } // namespace blink
162 157
163 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ 158 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_
OLDNEW
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698