| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 DisallowStyleSharing, | 78 DisallowStyleSharing, |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 enum RuleMatchingBehavior { | 81 enum RuleMatchingBehavior { |
| 82 MatchAllRules, | 82 MatchAllRules, |
| 83 MatchAllRulesExcludingSMIL | 83 MatchAllRulesExcludingSMIL |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 const unsigned styleSharingListSize = 15; | 86 const unsigned styleSharingListSize = 15; |
| 87 const unsigned styleSharingMaxDepth = 32; | 87 const unsigned styleSharingMaxDepth = 32; |
| 88 typedef WTF::Deque<Element*, styleSharingListSize> StyleSharingList; | 88 typedef WillBeHeapDeque<RawPtrWillBeMember<Element>, styleSharingListSize> Style
SharingList; |
| 89 | 89 |
| 90 struct CSSPropertyValue { | 90 struct CSSPropertyValue { |
| 91 STACK_ALLOCATED(); | 91 STACK_ALLOCATED(); |
| 92 public: | 92 public: |
| 93 CSSPropertyValue(CSSPropertyID property, CSSValue* value) | 93 CSSPropertyValue(CSSPropertyID property, CSSValue* value) |
| 94 : property(property), value(value) { } | 94 : property(property), value(value) { } |
| 95 // Stores value=propertySet.getPropertyCSSValue(id).get(). | 95 // Stores value=propertySet.getPropertyCSSValue(id).get(). |
| 96 CSSPropertyValue(CSSPropertyID, const StylePropertySet&); | 96 CSSPropertyValue(CSSPropertyID, const StylePropertySet&); |
| 97 CSSPropertyID property; | 97 CSSPropertyID property; |
| 98 RawPtrWillBeMember<CSSValue> value; | 98 RawPtrWillBeMember<CSSValue> value; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 // FIXME: watched selectors should be implemented using injected author styl
esheets: http://crbug.com/316960 | 310 // FIXME: watched selectors should be implemented using injected author styl
esheets: http://crbug.com/316960 |
| 311 OwnPtrWillBeMember<RuleSet> m_watchedSelectorsRules; | 311 OwnPtrWillBeMember<RuleSet> m_watchedSelectorsRules; |
| 312 TreeBoundaryCrossingRules m_treeBoundaryCrossingRules; | 312 TreeBoundaryCrossingRules m_treeBoundaryCrossingRules; |
| 313 | 313 |
| 314 bool m_needCollectFeatures; | 314 bool m_needCollectFeatures; |
| 315 | 315 |
| 316 StyleResourceLoader m_styleResourceLoader; | 316 StyleResourceLoader m_styleResourceLoader; |
| 317 | 317 |
| 318 unsigned m_styleSharingDepth; | 318 unsigned m_styleSharingDepth; |
| 319 Vector<OwnPtr<StyleSharingList>, styleSharingMaxDepth> m_styleSharingLists; | 319 WillBeHeapVector<OwnPtrWillBeMember<StyleSharingList>, styleSharingMaxDepth>
m_styleSharingLists; |
| 320 | 320 |
| 321 OwnPtr<StyleResolverStats> m_styleResolverStats; | 321 OwnPtr<StyleResolverStats> m_styleResolverStats; |
| 322 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 322 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 323 unsigned m_styleResolverStatsSequence; | 323 unsigned m_styleResolverStatsSequence; |
| 324 | 324 |
| 325 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 325 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 326 unsigned m_accessCount; | 326 unsigned m_accessCount; |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 } // namespace blink | 329 } // namespace blink |
| 330 | 330 |
| 331 #endif // StyleResolver_h | 331 #endif // StyleResolver_h |
| OLD | NEW |