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

Side by Side Diff: Source/core/css/DocumentRuleSets.h

Issue 23516012: Rename StyleSheetCollections to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/DocumentRuleSets.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 20 matching lines...) Expand all
31 #include "wtf/Vector.h" 31 #include "wtf/Vector.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class CSSStyleRule; 35 class CSSStyleRule;
36 class CSSStyleSheet; 36 class CSSStyleSheet;
37 class InspectorCSSOMWrappers; 37 class InspectorCSSOMWrappers;
38 class MatchRequest; 38 class MatchRequest;
39 class MediaQueryEvaluator; 39 class MediaQueryEvaluator;
40 class RuleSet; 40 class RuleSet;
41 class StyleSheetCollections; 41 class StyleEngine;
42 42
43 class ShadowDistributedRules { 43 class ShadowDistributedRules {
44 public: 44 public:
45 void addRule(StyleRule*, size_t selectorIndex, ContainerNode* scopingNode, A ddRuleFlags); 45 void addRule(StyleRule*, size_t selectorIndex, ContainerNode* scopingNode, A ddRuleFlags);
46 void collectMatchRequests(bool includeEmptyRules, Vector<MatchRequest>&); 46 void collectMatchRequests(bool includeEmptyRules, Vector<MatchRequest>&);
47 void clear() { m_shadowDistributedRuleSetMap.clear(); } 47 void clear() { m_shadowDistributedRuleSetMap.clear(); }
48 void reset(const ContainerNode* scopingNode); 48 void reset(const ContainerNode* scopingNode);
49 bool isEmpty() const { return m_shadowDistributedRuleSetMap.isEmpty(); } 49 bool isEmpty() const { return m_shadowDistributedRuleSetMap.isEmpty(); }
50 void collectFeaturesTo(RuleFeatureSet&); 50 void collectFeaturesTo(RuleFeatureSet&);
51 51
52 private: 52 private:
53 typedef HashMap<const ContainerNode*, OwnPtr<RuleSet> > ShadowDistributedRul eSetMap; 53 typedef HashMap<const ContainerNode*, OwnPtr<RuleSet> > ShadowDistributedRul eSetMap;
54 ShadowDistributedRuleSetMap m_shadowDistributedRuleSetMap; 54 ShadowDistributedRuleSetMap m_shadowDistributedRuleSetMap;
55 }; 55 };
56 56
57 class DocumentRuleSets { 57 class DocumentRuleSets {
58 public: 58 public:
59 DocumentRuleSets(); 59 DocumentRuleSets();
60 ~DocumentRuleSets(); 60 ~DocumentRuleSets();
61 RuleSet* userStyle() const { return m_userStyle.get(); } 61 RuleSet* userStyle() const { return m_userStyle.get(); }
62 62
63 void initUserStyle(StyleSheetCollections*, const MediaQueryEvaluator&, Style Resolver&); 63 void initUserStyle(StyleEngine*, const MediaQueryEvaluator&, StyleResolver&) ;
64 void resetAuthorStyle(); 64 void resetAuthorStyle();
65 void collectFeaturesTo(RuleFeatureSet&, bool isViewSource); 65 void collectFeaturesTo(RuleFeatureSet&, bool isViewSource);
66 66
67 ShadowDistributedRules& shadowDistributedRules() { return m_shadowDistribute dRules; } 67 ShadowDistributedRules& shadowDistributedRules() { return m_shadowDistribute dRules; }
68 68
69 private: 69 private:
70 void collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&, RuleSet& userStyle, const MediaQueryEvaluator&, StyleResolver&); 70 void collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&, RuleSet& userStyle, const MediaQueryEvaluator&, StyleResolver&);
71 OwnPtr<RuleSet> m_userStyle; 71 OwnPtr<RuleSet> m_userStyle;
72 ShadowDistributedRules m_shadowDistributedRules; 72 ShadowDistributedRules m_shadowDistributedRules;
73 }; 73 };
74 74
75 } // namespace WebCore 75 } // namespace WebCore
76 76
77 #endif // DocumentRuleSets_h 77 #endif // DocumentRuleSets_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/DocumentRuleSets.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698