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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 class StyleRulePage; | 72 class StyleRulePage; |
73 class ViewportStyleResolver; | 73 class ViewportStyleResolver; |
74 | 74 |
75 class MatchResult; | 75 class MatchResult; |
76 | 76 |
77 enum StyleSharingBehavior { | 77 enum StyleSharingBehavior { |
78 AllowStyleSharing, | 78 AllowStyleSharing, |
79 DisallowStyleSharing, | 79 DisallowStyleSharing, |
80 }; | 80 }; |
81 | 81 |
82 // MatchOnlyUserAgentRules is used in media queries, where relative units | |
83 // are interpreted according to the document root element style, and styled only | |
84 // from the User Agent Stylesheet rules. | |
85 enum RuleMatchingBehavior { | 82 enum RuleMatchingBehavior { |
86 MatchAllRules, | 83 MatchAllRules, |
87 MatchAllRulesExcludingSMIL, | 84 MatchAllRulesExcludingSMIL |
88 MatchOnlyUserAgentRules, | |
89 }; | 85 }; |
90 | 86 |
91 const unsigned styleSharingListSize = 40; | 87 const unsigned styleSharingListSize = 40; |
92 typedef WTF::Deque<Element*, styleSharingListSize> StyleSharingList; | 88 typedef WTF::Deque<Element*, styleSharingListSize> StyleSharingList; |
93 | 89 |
94 struct CSSPropertyValue { | 90 struct CSSPropertyValue { |
95 STACK_ALLOCATED(); | 91 STACK_ALLOCATED(); |
96 public: | 92 public: |
97 CSSPropertyValue(CSSPropertyID property, CSSValue* value) | 93 CSSPropertyValue(CSSPropertyID property, CSSValue* value) |
98 : property(property), value(value) { } | 94 : property(property), value(value) { } |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 327 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
332 unsigned m_styleResolverStatsSequence; | 328 unsigned m_styleResolverStatsSequence; |
333 | 329 |
334 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 330 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
335 unsigned m_accessCount; | 331 unsigned m_accessCount; |
336 }; | 332 }; |
337 | 333 |
338 } // namespace WebCore | 334 } // namespace WebCore |
339 | 335 |
340 #endif // StyleResolver_h | 336 #endif // StyleResolver_h |
OLD | NEW |