OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 RuleFeatureSet() | 48 RuleFeatureSet() |
49 : usesFirstLineRules(false) | 49 : usesFirstLineRules(false) |
50 , usesBeforeAfterRules(false) | 50 , usesBeforeAfterRules(false) |
51 { } | 51 { } |
52 | 52 |
53 void add(const RuleFeatureSet&); | 53 void add(const RuleFeatureSet&); |
54 void clear(); | 54 void clear(); |
55 | 55 |
56 void collectFeaturesFromSelector(const CSSSelector*); | 56 void collectFeaturesFromSelector(const CSSSelector*); |
57 | 57 |
58 void reportMemoryUsage(MemoryObjectInfo*) const; | |
59 | |
60 HashSet<AtomicStringImpl*> idsInRules; | 58 HashSet<AtomicStringImpl*> idsInRules; |
61 HashSet<AtomicStringImpl*> classesInRules; | 59 HashSet<AtomicStringImpl*> classesInRules; |
62 HashSet<AtomicStringImpl*> attrsInRules; | 60 HashSet<AtomicStringImpl*> attrsInRules; |
63 Vector<RuleFeature> siblingRules; | 61 Vector<RuleFeature> siblingRules; |
64 Vector<RuleFeature> uncommonAttributeRules; | 62 Vector<RuleFeature> uncommonAttributeRules; |
65 bool usesFirstLineRules; | 63 bool usesFirstLineRules; |
66 bool usesBeforeAfterRules; | 64 bool usesBeforeAfterRules; |
67 }; | 65 }; |
68 | 66 |
69 } // namespace WebCore | 67 } // namespace WebCore |
70 | 68 |
71 #endif // RuleFeature_h | 69 #endif // RuleFeature_h |
OLD | NEW |