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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 typedef WTF::Deque<Element*, styleSharingListSize> StyleSharingList; | 92 typedef WTF::Deque<Element*, styleSharingListSize> StyleSharingList; |
93 | 93 |
94 struct CSSPropertyValue { | 94 struct CSSPropertyValue { |
95 STACK_ALLOCATED(); | 95 STACK_ALLOCATED(); |
96 public: | 96 public: |
97 CSSPropertyValue(CSSPropertyID property, CSSValue* value) | 97 CSSPropertyValue(CSSPropertyID property, CSSValue* value) |
98 : property(property), value(value) { } | 98 : property(property), value(value) { } |
99 // Stores value=propertySet.getPropertyCSSValue(id).get(). | 99 // Stores value=propertySet.getPropertyCSSValue(id).get(). |
100 CSSPropertyValue(CSSPropertyID, const StylePropertySet&); | 100 CSSPropertyValue(CSSPropertyID, const StylePropertySet&); |
101 CSSPropertyID property; | 101 CSSPropertyID property; |
102 CSSValue* value; | 102 RawPtrWillBeMember<CSSValue> value; |
103 }; | 103 }; |
104 | 104 |
105 // This class selects a RenderStyle for a given element based on a collection of
stylesheets. | 105 // This class selects a RenderStyle for a given element based on a collection of
stylesheets. |
106 class StyleResolver FINAL : public CSSFontSelectorClient { | 106 class StyleResolver FINAL : public CSSFontSelectorClient { |
107 WTF_MAKE_NONCOPYABLE(StyleResolver); WTF_MAKE_FAST_ALLOCATED; | 107 WTF_MAKE_NONCOPYABLE(StyleResolver); WTF_MAKE_FAST_ALLOCATED; |
108 public: | 108 public: |
109 explicit StyleResolver(Document&); | 109 explicit StyleResolver(Document&); |
110 virtual ~StyleResolver(); | 110 virtual ~StyleResolver(); |
111 | 111 |
112 // FIXME: StyleResolver should not be keeping tree-walk state. | 112 // FIXME: StyleResolver should not be keeping tree-walk state. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 335 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
336 unsigned m_styleResolverStatsSequence; | 336 unsigned m_styleResolverStatsSequence; |
337 | 337 |
338 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 338 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
339 unsigned m_accessCount; | 339 unsigned m_accessCount; |
340 }; | 340 }; |
341 | 341 |
342 } // namespace WebCore | 342 } // namespace WebCore |
343 | 343 |
344 #endif // StyleResolver_h | 344 #endif // StyleResolver_h |
OLD | NEW |