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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 template <StyleApplicationPass pass> | 274 template <StyleApplicationPass pass> |
275 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop
ertyWhitelistNone); | 275 void applyProperties(StyleResolverState&, const StylePropertySet* properties
, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = Prop
ertyWhitelistNone); |
276 template <StyleApplicationPass pass> | 276 template <StyleApplicationPass pass> |
277 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS
SPropertyID, RefPtrWillBeMember<Interpolation> >&); | 277 void applyAnimatedProperties(StyleResolverState&, const WillBeHeapHashMap<CS
SPropertyID, RefPtrWillBeMember<Interpolation> >&); |
278 template <StyleResolver::StyleApplicationPass pass> | 278 template <StyleResolver::StyleApplicationPass pass> |
279 void applyAllProperty(StyleResolverState&, CSSValue*); | 279 void applyAllProperty(StyleResolverState&, CSSValue*); |
280 | 280 |
281 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); | 281 void matchPageRules(MatchResult&, RuleSet*, bool isLeftPage, bool isFirstPag
e, const String& pageName); |
282 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); | 282 void matchPageRulesForList(WillBeHeapVector<RawPtrWillBeMember<StyleRulePage
> >& matchedRules, const WillBeHeapVector<RawPtrWillBeMember<StyleRulePage> >&,
bool isLeftPage, bool isFirstPage, const String& pageName); |
283 void collectViewportRules(); | 283 void collectViewportRules(); |
284 Settings* documentSettings() { return m_document.settings(); } | |
285 | 284 |
286 bool isLeftPage(int pageIndex) const; | 285 bool isLeftPage(int pageIndex) const; |
287 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } | 286 bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } |
288 bool isFirstPage(int pageIndex) const; | 287 bool isFirstPage(int pageIndex) const; |
289 String pageName(int pageIndex) const; | 288 String pageName(int pageIndex) const; |
290 | 289 |
291 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, Rend
erStyle* parentStyle, StyleResolverState&); | 290 bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, Rend
erStyle* parentStyle, StyleResolverState&); |
292 | 291 |
293 // FIXME: This likely belongs on RuleSet. | 292 // FIXME: This likely belongs on RuleSet. |
294 typedef WillBeHeapHashMap<StringImpl*, RefPtrWillBeMember<StyleRuleKeyframes
> > KeyframesRuleMap; | 293 typedef WillBeHeapHashMap<StringImpl*, RefPtrWillBeMember<StyleRuleKeyframes
> > KeyframesRuleMap; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 332 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
334 unsigned m_styleResolverStatsSequence; | 333 unsigned m_styleResolverStatsSequence; |
335 | 334 |
336 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 335 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
337 unsigned m_accessCount; | 336 unsigned m_accessCount; |
338 }; | 337 }; |
339 | 338 |
340 } // namespace WebCore | 339 } // namespace WebCore |
341 | 340 |
342 #endif // StyleResolver_h | 341 #endif // StyleResolver_h |
OLD | NEW |