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

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

Issue 1858753003: Remove RawPtr from core/css (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 RawPtr<StyleImage> styleImage(CSSPropertyID propertyId, const CSSValue& valu e) 121 StyleImage* styleImage(CSSPropertyID propertyId, const CSSValue& value)
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 OwnPtr<CachedUAStyle> m_cachedUAStyle; 183 OwnPtr<CachedUAStyle> m_cachedUAStyle;
184 184
185 ElementStyleResources m_elementStyleResources; 185 ElementStyleResources m_elementStyleResources;
186 186
187 HeapHashMap<String, Member<StylePropertySet>> m_customPropertySetsForApplyAt Rule; 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