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

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

Issue 1555993002: Reduce risk of MediaQueryEvaluator-induced leaks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 bool hasAuthorBorder(const StyleResolverState&); 228 bool hasAuthorBorder(const StyleResolverState&);
229 229
230 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId); 230 PassRefPtrWillBeRawPtr<PseudoElement> createPseudoElement(Element* parent, P seudoId);
231 231
232 Document& document() { return *m_document; } 232 Document& document() { return *m_document; }
233 233
234 static ComputedStyle* s_styleNotYetAvailable; 234 static ComputedStyle* s_styleNotYetAvailable;
235 235
236 MatchedPropertiesCache m_matchedPropertiesCache; 236 MatchedPropertiesCache m_matchedPropertiesCache;
237 237
238 OwnPtr<MediaQueryEvaluator> m_medium; 238 OwnPtrWillBeMember<MediaQueryEvaluator> m_medium;
239 MediaQueryResultList m_viewportDependentMediaQueryResults; 239 MediaQueryResultList m_viewportDependentMediaQueryResults;
240 240
241 RawPtrWillBeMember<Document> m_document; 241 RawPtrWillBeMember<Document> m_document;
242 SelectorFilter m_selectorFilter; 242 SelectorFilter m_selectorFilter;
243 243
244 OwnPtrWillBeMember<ViewportStyleResolver> m_viewportStyleResolver; 244 OwnPtrWillBeMember<ViewportStyleResolver> m_viewportStyleResolver;
245 245
246 WillBeHeapListHashSet<RawPtrWillBeMember<CSSStyleSheet>, 16> m_pendingStyleS heets; 246 WillBeHeapListHashSet<RawPtrWillBeMember<CSSStyleSheet>, 16> m_pendingStyleS heets;
247 247
248 // FIXME: The entire logic of collecting features on StyleResolver, as well as transferring them 248 // FIXME: The entire logic of collecting features on StyleResolver, as well as transferring them
(...skipping 13 matching lines...) Expand all
262 262
263 OwnPtr<StyleResolverStats> m_styleResolverStats; 263 OwnPtr<StyleResolverStats> m_styleResolverStats;
264 264
265 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 265 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
266 unsigned m_accessCount; 266 unsigned m_accessCount;
267 }; 267 };
268 268
269 } // namespace blink 269 } // namespace blink
270 270
271 #endif // StyleResolver_h 271 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698