| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void pushParentShadowRoot(const ShadowRoot&); | 117 void pushParentShadowRoot(const ShadowRoot&); |
| 118 void popParentShadowRoot(const ShadowRoot&); | 118 void popParentShadowRoot(const ShadowRoot&); |
| 119 | 119 |
| 120 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, | 120 PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle =
0, StyleSharingBehavior = AllowStyleSharing, |
| 121 RuleMatchingBehavior = MatchAllRules, RenderRegion* regionForStyling = 0
); | 121 RuleMatchingBehavior = MatchAllRules, RenderRegion* regionForStyling = 0
); |
| 122 | 122 |
| 123 // FIXME: keyframeStylesForAnimation is only used in the legacy animations i
mplementation | 123 // FIXME: keyframeStylesForAnimation is only used in the legacy animations i
mplementation |
| 124 // and should be removed when that is replaced by Web Animations. | 124 // and should be removed when that is replaced by Web Animations. |
| 125 void keyframeStylesForAnimation(Element*, const RenderStyle&, KeyframeList&)
; | 125 void keyframeStylesForAnimation(Element*, const RenderStyle&, KeyframeList&)
; |
| 126 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, const
StyleKeyframe*, const AtomicString& animationName); | 126 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, const
StyleKeyframe*, const AtomicString& animationName); |
| 127 static PassRefPtr<KeyframeAnimationEffect> createKeyframeAnimationEffect(Ele
ment&, const Vector<RefPtr<MutableStylePropertySet> >&, KeyframeAnimationEffect:
:KeyframeVector&); |
| 127 | 128 |
| 128 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); | 129 PassRefPtr<RenderStyle> pseudoStyleForElement(Element*, const PseudoStyleReq
uest&, RenderStyle* parentStyle); |
| 129 | 130 |
| 130 PassRefPtr<RenderStyle> styleForPage(int pageIndex); | 131 PassRefPtr<RenderStyle> styleForPage(int pageIndex); |
| 131 PassRefPtr<RenderStyle> defaultStyleForElement(); | 132 PassRefPtr<RenderStyle> defaultStyleForElement(); |
| 132 PassRefPtr<RenderStyle> styleForText(Text*); | 133 PassRefPtr<RenderStyle> styleForText(Text*); |
| 133 | 134 |
| 134 static PassRefPtr<RenderStyle> styleForDocument(Document&, CSSFontSelector*
= 0); | 135 static PassRefPtr<RenderStyle> styleForDocument(Document&, CSSFontSelector*
= 0); |
| 135 | 136 |
| 136 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about | 137 // FIXME: This only has 5 callers and should be removed. Callers should be e
xplicit about |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi
onElement, SelectorChecker::VisitedMatchDisabled); | 343 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi
onElement, SelectorChecker::VisitedMatchDisabled); |
| 343 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt
rategy()) == SelectorChecker::SelectorMatches) | 344 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt
rategy()) == SelectorChecker::SelectorMatches) |
| 344 return true; | 345 return true; |
| 345 } | 346 } |
| 346 return false; | 347 return false; |
| 347 } | 348 } |
| 348 | 349 |
| 349 } // namespace WebCore | 350 } // namespace WebCore |
| 350 | 351 |
| 351 #endif // StyleResolver_h | 352 #endif // StyleResolver_h |
| OLD | NEW |