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

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

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Omit split CLs Created 7 years, 5 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 * 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 typedef HashMap<const ContainerNode*, OwnPtr<RuleSet> > ShadowDistributedRul eSetMap; 54 typedef HashMap<const ContainerNode*, OwnPtr<RuleSet> > ShadowDistributedRul eSetMap;
55 ShadowDistributedRuleSetMap m_shadowDistributedRuleSetMap; 55 ShadowDistributedRuleSetMap m_shadowDistributedRuleSetMap;
56 }; 56 };
57 57
58 class DocumentRuleSets { 58 class DocumentRuleSets {
59 public: 59 public:
60 DocumentRuleSets(); 60 DocumentRuleSets();
61 ~DocumentRuleSets(); 61 ~DocumentRuleSets();
62 RuleSet* userStyle() const { return m_userStyle.get(); } 62 RuleSet* userStyle() const { return m_userStyle.get(); }
63 63
64 void initUserStyle(DocumentStyleSheetCollection*, const MediaQueryEvaluator& , StyleResolver&); 64 void initUserStyle(DocumentStyleSheetCollection*, const Vector<RefPtr<StyleR ule> >& watchedSelectors, const MediaQueryEvaluator&, StyleResolver&);
65 void resetAuthorStyle(); 65 void resetAuthorStyle();
66 void collectFeaturesTo(RuleFeatureSet&, bool isViewSource); 66 void collectFeaturesTo(RuleFeatureSet&, bool isViewSource);
67 67
68 void reportMemoryUsage(MemoryObjectInfo*) const; 68 void reportMemoryUsage(MemoryObjectInfo*) const;
69 ShadowDistributedRules& shadowDistributedRules() { return m_shadowDistribute dRules; } 69 ShadowDistributedRules& shadowDistributedRules() { return m_shadowDistribute dRules; }
70 70
71 private: 71 private:
72 void collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&, RuleSet& userStyle, const MediaQueryEvaluator&, StyleResolver&); 72 void collectRulesFromUserStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&, RuleSet& userStyle, const MediaQueryEvaluator&, StyleResolver&);
73 void collectRulesFromWatchedSelectors(const Vector<RefPtr<StyleRule> >&, Rul eSet& userStyle);
73 OwnPtr<RuleSet> m_userStyle; 74 OwnPtr<RuleSet> m_userStyle;
74 ShadowDistributedRules m_shadowDistributedRules; 75 ShadowDistributedRules m_shadowDistributedRules;
75 }; 76 };
76 77
77 } // namespace WebCore 78 } // namespace WebCore
78 79
79 #endif // DocumentRuleSets_h 80 #endif // DocumentRuleSets_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698