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

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

Issue 796583002: Use the HashSet of attribute names in SharedStyleFinder. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Use C++11 loops. Created 6 years 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 OwnPtr<MediaQueryEvaluator> m_medium; 227 OwnPtr<MediaQueryEvaluator> m_medium;
228 MediaQueryResultList m_viewportDependentMediaQueryResults; 228 MediaQueryResultList m_viewportDependentMediaQueryResults;
229 229
230 RawPtr<Document> m_document; 230 RawPtr<Document> m_document;
231 231
232 ListHashSet<RawPtr<CSSStyleSheet>, 16> m_pendingStyleSheets; 232 ListHashSet<RawPtr<CSSStyleSheet>, 16> m_pendingStyleSheets;
233 233
234 // FIXME: The entire logic of collecting features on StyleResolver, as well as transferring them 234 // FIXME: The entire logic of collecting features on StyleResolver, as well as transferring them
235 // between various parts of machinery smells wrong. This needs to be better somehow. 235 // between various parts of machinery smells wrong. This needs to be better somehow.
236 RuleFeatureSet m_features; 236 RuleFeatureSet m_features;
237 OwnPtr<RuleSet> m_attributeRuleSet;
238 237
239 bool m_needCollectFeatures; 238 bool m_needCollectFeatures;
240 bool m_printMediaType; 239 bool m_printMediaType;
241 240
242 StyleResourceLoader m_styleResourceLoader; 241 StyleResourceLoader m_styleResourceLoader;
243 242
244 unsigned m_styleSharingDepth; 243 unsigned m_styleSharingDepth;
245 Vector<OwnPtr<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists; 244 Vector<OwnPtr<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists;
246 245
247 OwnPtr<StyleResolverStats> m_styleResolverStats; 246 OwnPtr<StyleResolverStats> m_styleResolverStats;
248 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 247 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
249 unsigned m_styleResolverStatsSequence; 248 unsigned m_styleResolverStatsSequence;
250 249
251 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 250 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
252 unsigned m_accessCount; 251 unsigned m_accessCount;
253 }; 252 };
254 253
255 } // namespace blink 254 } // namespace blink
256 255
257 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ 256 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/SharedStyleFinder.cpp ('k') | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698