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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 return m_cachedUAStyle.get(); 111 return m_cachedUAStyle.get();
112 } 112 }
113 113
114 ElementStyleResources& elementStyleResources() { return m_elementStyleResour ces; } 114 ElementStyleResources& elementStyleResources() { return m_elementStyleResour ces; }
115 115
116 void loadPendingResources(); 116 void loadPendingResources();
117 117
118 // FIXME: Once styleImage can be made to not take a StyleResolverState 118 // FIXME: Once styleImage can be made to not take a StyleResolverState
119 // this convenience function should be removed. As-is, without this, call 119 // this convenience function should be removed. As-is, without this, call
120 // sites are extremely verbose. 120 // sites are extremely verbose.
121 PassRefPtrWillBeRawPtr<StyleImage> styleImage(CSSPropertyID propertyId, cons t CSSValue& value) 121 RawPtr<StyleImage> styleImage(CSSPropertyID propertyId, const CSSValue& valu e)
122 { 122 {
123 return m_elementStyleResources.styleImage(propertyId, value); 123 return m_elementStyleResources.styleImage(propertyId, value);
124 } 124 }
125 125
126 FontBuilder& fontBuilder() { return m_fontBuilder; } 126 FontBuilder& fontBuilder() { return m_fontBuilder; }
127 const FontBuilder& fontBuilder() const { return m_fontBuilder; } 127 const FontBuilder& fontBuilder() const { return m_fontBuilder; }
128 // FIXME: These exist as a primitive way to track mutations to font-related properties 128 // FIXME: These exist as a primitive way to track mutations to font-related properties
129 // on a ComputedStyle. As designed, these are very error-prone, as some call ers 129 // on a ComputedStyle. As designed, these are very error-prone, as some call ers
130 // set these directly on the ComputedStyle w/o telling us. Presumably we'll 130 // set these directly on the ComputedStyle w/o telling us. Presumably we'll
131 // want to design a better wrapper around ComputedStyle for tracking these m utations 131 // want to design a better wrapper around ComputedStyle for tracking these m utations
(...skipping 22 matching lines...) Expand all
154 } 154 }
155 155
156 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; } 156 void setHasDirAutoAttribute(bool value) { m_hasDirAutoAttribute = value; }
157 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; } 157 bool hasDirAutoAttribute() const { return m_hasDirAutoAttribute; }
158 158
159 void setCustomPropertySetForApplyAtRule(const String&, StylePropertySet*); 159 void setCustomPropertySetForApplyAtRule(const String&, StylePropertySet*);
160 StylePropertySet* customPropertySetForApplyAtRule(const String&); 160 StylePropertySet* customPropertySetForApplyAtRule(const String&);
161 161
162 private: 162 private:
163 ElementResolveContext m_elementContext; 163 ElementResolveContext m_elementContext;
164 RawPtrWillBeMember<Document> m_document; 164 Member<Document> m_document;
165 165
166 // m_style is the primary output for each element's style resolve. 166 // m_style is the primary output for each element's style resolve.
167 RefPtr<ComputedStyle> m_style; 167 RefPtr<ComputedStyle> m_style;
168 168
169 CSSToLengthConversionData m_cssToLengthConversionData; 169 CSSToLengthConversionData m_cssToLengthConversionData;
170 170
171 // m_parentStyle is not always just ElementResolveContext::parentStyle, 171 // m_parentStyle is not always just ElementResolveContext::parentStyle,
172 // so we keep it separate. 172 // so we keep it separate.
173 RefPtr<ComputedStyle> m_parentStyle; 173 RefPtr<ComputedStyle> m_parentStyle;
174 174
175 CSSAnimationUpdate m_animationUpdate; 175 CSSAnimationUpdate m_animationUpdate;
176 176
177 bool m_applyPropertyToRegularStyle; 177 bool m_applyPropertyToRegularStyle;
178 bool m_applyPropertyToVisitedLinkStyle; 178 bool m_applyPropertyToVisitedLinkStyle;
179 bool m_hasDirAutoAttribute; 179 bool m_hasDirAutoAttribute;
180 180
181 FontBuilder m_fontBuilder; 181 FontBuilder m_fontBuilder;
182 182
183 OwnPtr<CachedUAStyle> m_cachedUAStyle; 183 OwnPtr<CachedUAStyle> m_cachedUAStyle;
184 184
185 ElementStyleResources m_elementStyleResources; 185 ElementStyleResources m_elementStyleResources;
186 186
187 WillBeHeapHashMap<String, RefPtrWillBeMember<StylePropertySet>> m_customProp ertySetsForApplyAtRule; 187 HeapHashMap<String, Member<StylePropertySet>> m_customPropertySetsForApplyAt Rule;
188 }; 188 };
189 189
190 } // namespace blink 190 } // namespace blink
191 191
192 #endif // StyleResolverState_h 192 #endif // StyleResolverState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698