| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef StyleResolver_h | 22 #ifndef StyleResolver_h |
| 23 #define StyleResolver_h | 23 #define StyleResolver_h |
| 24 | 24 |
| 25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 26 #include "core/css/CSSRuleList.h" | 26 #include "core/css/CSSRuleList.h" |
| 27 #include "core/css/CSSSVGDocumentValue.h" |
| 27 #include "core/css/CSSToStyleMap.h" | 28 #include "core/css/CSSToStyleMap.h" |
| 28 #include "core/css/CSSValueList.h" | 29 #include "core/css/CSSValueList.h" |
| 29 #include "core/css/DocumentRuleSets.h" | 30 #include "core/css/DocumentRuleSets.h" |
| 30 #include "core/css/InspectorCSSOMWrappers.h" | 31 #include "core/css/InspectorCSSOMWrappers.h" |
| 31 #include "core/css/MediaQueryExp.h" | 32 #include "core/css/MediaQueryExp.h" |
| 32 #include "core/css/RuleFeature.h" | 33 #include "core/css/RuleFeature.h" |
| 33 #include "core/css/RuleSet.h" | 34 #include "core/css/RuleSet.h" |
| 34 #include "core/css/SelectorChecker.h" | 35 #include "core/css/SelectorChecker.h" |
| 35 #include "core/css/SelectorFilter.h" | 36 #include "core/css/SelectorFilter.h" |
| 36 #include "core/css/SiblingTraversalStrategies.h" | 37 #include "core/css/SiblingTraversalStrategies.h" |
| 37 #include "core/css/WebKitCSSSVGDocumentValue.h" | |
| 38 #include "core/css/resolver/ScopedStyleResolver.h" | 38 #include "core/css/resolver/ScopedStyleResolver.h" |
| 39 #include "core/css/resolver/StyleResolverState.h" | 39 #include "core/css/resolver/StyleResolverState.h" |
| 40 #include "core/css/resolver/ViewportStyleResolver.h" | 40 #include "core/css/resolver/ViewportStyleResolver.h" |
| 41 #include "core/platform/LinkHash.h" | 41 #include "core/platform/LinkHash.h" |
| 42 #include "core/platform/ScrollTypes.h" | 42 #include "core/platform/ScrollTypes.h" |
| 43 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h" | 43 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h" |
| 44 #include "core/rendering/style/RenderStyle.h" | 44 #include "core/rendering/style/RenderStyle.h" |
| 45 #include "wtf/HashMap.h" | 45 #include "wtf/HashMap.h" |
| 46 #include "wtf/HashSet.h" | 46 #include "wtf/HashSet.h" |
| 47 #include "wtf/RefPtr.h" | 47 #include "wtf/RefPtr.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 class StyleRuleHost; | 100 class StyleRuleHost; |
| 101 class StyleRuleKeyframes; | 101 class StyleRuleKeyframes; |
| 102 class StyleRulePage; | 102 class StyleRulePage; |
| 103 class StyleRuleRegion; | 103 class StyleRuleRegion; |
| 104 class StyleShader; | 104 class StyleShader; |
| 105 class StyleSheet; | 105 class StyleSheet; |
| 106 class StyleSheetList; | 106 class StyleSheetList; |
| 107 class StyledElement; | 107 class StyledElement; |
| 108 class ViewportStyleResolver; | 108 class ViewportStyleResolver; |
| 109 class WebKitCSSFilterValue; | 109 class WebKitCSSFilterValue; |
| 110 class WebKitCSSShaderValue; | |
| 111 class WebKitCSSSVGDocumentValue; | |
| 112 | 110 |
| 113 class MediaQueryResult { | 111 class MediaQueryResult { |
| 114 WTF_MAKE_NONCOPYABLE(MediaQueryResult); WTF_MAKE_FAST_ALLOCATED; | 112 WTF_MAKE_NONCOPYABLE(MediaQueryResult); WTF_MAKE_FAST_ALLOCATED; |
| 115 public: | 113 public: |
| 116 MediaQueryResult(const MediaQueryExp& expr, bool result) | 114 MediaQueryResult(const MediaQueryExp& expr, bool result) |
| 117 : m_expression(expr) | 115 : m_expression(expr) |
| 118 , m_result(result) | 116 , m_result(result) |
| 119 { | 117 { |
| 120 } | 118 } |
| 121 void reportMemoryUsage(MemoryObjectInfo*) const; | 119 void reportMemoryUsage(MemoryObjectInfo*) const; |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 PseudoId ignoreDynamicPseudo = NOPSEUDO; | 519 PseudoId ignoreDynamicPseudo = NOPSEUDO; |
| 522 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo,
DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) | 520 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo,
DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) |
| 523 return true; | 521 return true; |
| 524 } | 522 } |
| 525 return false; | 523 return false; |
| 526 } | 524 } |
| 527 | 525 |
| 528 } // namespace WebCore | 526 } // namespace WebCore |
| 529 | 527 |
| 530 #endif // StyleResolver_h | 528 #endif // StyleResolver_h |
| OLD | NEW |