| 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 "core/animation/KeyframeAnimationEffect.h" |
| 25 #include "core/css/DocumentRuleSets.h" | 26 #include "core/css/DocumentRuleSets.h" |
| 26 #include "core/css/InspectorCSSOMWrappers.h" | 27 #include "core/css/InspectorCSSOMWrappers.h" |
| 27 #include "core/css/PseudoStyleRequest.h" | 28 #include "core/css/PseudoStyleRequest.h" |
| 28 #include "core/css/RuleFeature.h" | 29 #include "core/css/RuleFeature.h" |
| 29 #include "core/css/RuleSet.h" | 30 #include "core/css/RuleSet.h" |
| 30 #include "core/css/SelectorChecker.h" | 31 #include "core/css/SelectorChecker.h" |
| 31 #include "core/css/SelectorFilter.h" | 32 #include "core/css/SelectorFilter.h" |
| 32 #include "core/css/SiblingTraversalStrategies.h" | 33 #include "core/css/SiblingTraversalStrategies.h" |
| 33 #include "core/css/resolver/MatchedPropertiesCache.h" | 34 #include "core/css/resolver/MatchedPropertiesCache.h" |
| 34 #include "core/css/resolver/ScopedStyleResolver.h" | 35 #include "core/css/resolver/ScopedStyleResolver.h" |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. | 180 // Using these during tree walk will allow style selector to optimize child
and descendant selector lookups. |
| 180 void pushParentElement(Element*); | 181 void pushParentElement(Element*); |
| 181 void popParentElement(Element*); | 182 void popParentElement(Element*); |
| 182 void pushParentShadowRoot(const ShadowRoot*); | 183 void pushParentShadowRoot(const ShadowRoot*); |
| 183 void popParentShadowRoot(const ShadowRoot*); | 184 void popParentShadowRoot(const ShadowRoot*); |
| 184 | 185 |
| 185 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, | 186 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, |
| 186 RuleMatchingBehavior = MatchAllRules, RenderRegion* regionForStyling = 0
); | 187 RuleMatchingBehavior = MatchAllRules, RenderRegion* regionForStyling = 0
); |
| 187 | 188 |
| 188 void keyframeStylesForAnimation(Element*, const RenderStyle*, KeyframeList&)
; | 189 void keyframeStylesForAnimation(Element*, const RenderStyle*, KeyframeList&)
; |
| 190 void keyframeStylesForAnimation(Element*, const StringImpl*, KeyframeAnimati
onEffect::KeyframeVector&); |
| 189 | 191 |
| 190 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); | 192 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); |
| 191 | 193 |
| 192 PassRefPtr<RenderStyle> styleForPage(int pageIndex); | 194 PassRefPtr<RenderStyle> styleForPage(int pageIndex); |
| 193 PassRefPtr<RenderStyle> defaultStyleForElement(); | 195 PassRefPtr<RenderStyle> defaultStyleForElement(); |
| 194 PassRefPtr<RenderStyle> styleForText(Text*); | 196 PassRefPtr<RenderStyle> styleForText(Text*); |
| 195 | 197 |
| 196 static PassRefPtr<RenderStyle> styleForDocument(const Document*, CSSFontSele
ctor* = 0); | 198 static PassRefPtr<RenderStyle> styleForDocument(const Document*, CSSFontSele
ctor* = 0); |
| 197 | 199 |
| 198 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about | 200 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 PseudoId ignoreDynamicPseudo = NOPSEUDO; | 373 PseudoId ignoreDynamicPseudo = NOPSEUDO; |
| 372 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo,
DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) | 374 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo,
DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) |
| 373 return true; | 375 return true; |
| 374 } | 376 } |
| 375 return false; | 377 return false; |
| 376 } | 378 } |
| 377 | 379 |
| 378 } // namespace WebCore | 380 } // namespace WebCore |
| 379 | 381 |
| 380 #endif // StyleResolver_h | 382 #endif // StyleResolver_h |
| OLD | NEW |