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

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

Issue 129633003: Add a first pass of a class descendant invalidator, and a containing RuleSetAnalyzer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Implement tree walk for descendant class invalidation. Created 6 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 | Annotate | Revision Log
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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 Document& m_document; 303 Document& m_document;
304 SelectorFilter m_selectorFilter; 304 SelectorFilter m_selectorFilter;
305 305
306 RefPtr<ViewportStyleResolver> m_viewportStyleResolver; 306 RefPtr<ViewportStyleResolver> m_viewportStyleResolver;
307 307
308 ListHashSet<CSSStyleSheet*, 16> m_pendingStyleSheets; 308 ListHashSet<CSSStyleSheet*, 16> m_pendingStyleSheets;
309 309
310 ScopedStyleTree m_styleTree; 310 ScopedStyleTree m_styleTree;
311 311
312 // FIXME: The entire logic of collecting features on StyleResolver, as well astransferring them 312 // FIXME: The entire logic of collecting features on StyleResolver, as well as transferring them
313 // between various parts of machinery smells wrong. This needs to be better somehow. 313 // between various parts of machinery smells wrong. This needs to be better somehow.
314 RuleFeatureSet m_features; 314 RuleFeatureSet m_features;
315 OwnPtr<RuleSet> m_siblingRuleSet; 315 OwnPtr<RuleSet> m_siblingRuleSet;
316 OwnPtr<RuleSet> m_uncommonAttributeRuleSet; 316 OwnPtr<RuleSet> m_uncommonAttributeRuleSet;
317 317
318 // FIXME: watched selectors should be implemented using injected author styl esheets: http://crbug.com/316960 318 // FIXME: watched selectors should be implemented using injected author styl esheets: http://crbug.com/316960
319 OwnPtr<RuleSet> m_watchedSelectorsRules; 319 OwnPtr<RuleSet> m_watchedSelectorsRules;
320 TreeBoundaryCrossingRules m_treeBoundaryCrossingRules; 320 TreeBoundaryCrossingRules m_treeBoundaryCrossingRules;
321 321
322 bool m_needCollectFeatures; 322 bool m_needCollectFeatures;
(...skipping 19 matching lines...) Expand all
342 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi onElement, SelectorChecker::VisitedMatchDisabled); 342 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi onElement, SelectorChecker::VisitedMatchDisabled);
343 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt rategy()) == SelectorChecker::SelectorMatches) 343 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt rategy()) == SelectorChecker::SelectorMatches)
344 return true; 344 return true;
345 } 345 }
346 return false; 346 return false;
347 } 347 }
348 348
349 } // namespace WebCore 349 } // namespace WebCore
350 350
351 #endif // StyleResolver_h 351 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/analyzer/RuleSetAnalyzer.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698