Chromium Code Reviews| 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*); | 126 PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, const StyleKeyframe*); |
| 127 static void setKeyframePropertyValues(Element*, const Vector<RefPtr<MutableS tylePropertySet> >&, KeyframeAnimationEffect::KeyframeVector&); | |
|
esprehn
2013/12/09 18:51:25
Should take an Element&, and return a KeyframeAnim
rjwright
2013/12/10 03:05:40
Done.
| |
| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 347 PseudoId ignoreDynamicPseudo = NOPSEUDO; | 348 PseudoId ignoreDynamicPseudo = NOPSEUDO; |
| 348 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) | 349 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) |
| 349 return true; | 350 return true; |
| 350 } | 351 } |
| 351 return false; | 352 return false; |
| 352 } | 353 } |
| 353 | 354 |
| 354 } // namespace WebCore | 355 } // namespace WebCore |
| 355 | 356 |
| 356 #endif // StyleResolver_h | 357 #endif // StyleResolver_h |
| OLD | NEW |