| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 StyleResolverStats* statsTotals() { return m_styleResolverStatsTotals.get();
} | 91 StyleResolverStats* statsTotals() { return m_styleResolverStatsTotals.get();
} |
| 92 enum StatsReportType { ReportDefaultStats, ReportSlowStats }; | 92 enum StatsReportType { ReportDefaultStats, ReportSlowStats }; |
| 93 void enableStats(StatsReportType = ReportDefaultStats); | 93 void enableStats(StatsReportType = ReportDefaultStats); |
| 94 void disableStats(); | 94 void disableStats(); |
| 95 void printStats(); | 95 void printStats(); |
| 96 | 96 |
| 97 private: | 97 private: |
| 98 // FIXME: This should probably go away, folded into FontBuilder. | 98 // FIXME: This should probably go away, folded into FontBuilder. |
| 99 void updateFont(StyleResolverState&); | 99 void updateFont(StyleResolverState&); |
| 100 | 100 |
| 101 void loadPendingResources(StyleResolverState&); | |
| 102 | |
| 103 void matchRules(Element&, ElementRuleCollector&); | 101 void matchRules(Element&, ElementRuleCollector&); |
| 104 | 102 |
| 105 void applyMatchedProperties(StyleResolverState&, const MatchResult&); | 103 void applyMatchedProperties(StyleResolverState&, const MatchResult&); |
| 106 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement)
; | 104 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement)
; |
| 107 | 105 |
| 108 enum StyleApplicationPass { | 106 enum StyleApplicationPass { |
| 109 HighPriorityProperties, | 107 HighPriorityProperties, |
| 110 LowPriorityProperties | 108 LowPriorityProperties |
| 111 }; | 109 }; |
| 112 template <StyleResolver::StyleApplicationPass pass> | 110 template <StyleResolver::StyleApplicationPass pass> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 129 StyleSharingList m_styleSharingList; | 127 StyleSharingList m_styleSharingList; |
| 130 | 128 |
| 131 OwnPtr<StyleResolverStats> m_styleResolverStats; | 129 OwnPtr<StyleResolverStats> m_styleResolverStats; |
| 132 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; | 130 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; |
| 133 unsigned m_styleResolverStatsSequence; | 131 unsigned m_styleResolverStatsSequence; |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 } // namespace blink | 134 } // namespace blink |
| 137 | 135 |
| 138 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ | 136 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ |
| OLD | NEW |