| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 CrossOriginCSSRules = 1 << 4, | 130 CrossOriginCSSRules = 1 << 4, |
| 131 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS
SRules, | 131 AllButEmptyCSSRules = UAAndUserCSSRules | AuthorCSSRules | CrossOriginCS
SRules, |
| 132 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, | 132 AllCSSRules = AllButEmptyCSSRules | EmptyCSSRules, |
| 133 }; | 133 }; |
| 134 PassRefPtrWillBeRawPtr<CSSRuleList> cssRulesForElement(Element*, unsigned ru
lesToInclude = AllButEmptyCSSRules); | 134 PassRefPtrWillBeRawPtr<CSSRuleList> cssRulesForElement(Element*, unsigned ru
lesToInclude = AllButEmptyCSSRules); |
| 135 PassRefPtrWillBeRawPtr<CSSRuleList> pseudoCSSRulesForElement(Element*, Pseud
oId, unsigned rulesToInclude = AllButEmptyCSSRules); | 135 PassRefPtrWillBeRawPtr<CSSRuleList> pseudoCSSRulesForElement(Element*, Pseud
oId, unsigned rulesToInclude = AllButEmptyCSSRules); |
| 136 PassRefPtrWillBeRawPtr<StyleRuleList> styleRulesForElement(Element*, unsigne
d rulesToInclude); | 136 PassRefPtrWillBeRawPtr<StyleRuleList> styleRulesForElement(Element*, unsigne
d rulesToInclude); |
| 137 | 137 |
| 138 void computeFont(ComputedStyle*, const StylePropertySet&); | 138 void computeFont(ComputedStyle*, const StylePropertySet&); |
| 139 | 139 |
| 140 ViewportStyleResolver* viewportStyleResolver() const; | 140 ViewportStyleResolver* viewportStyleResolver() { return m_viewportStyleResol
ver.get(); } |
| 141 | 141 |
| 142 void addMediaQueryResults(const MediaQueryResultList&); | 142 void addMediaQueryResults(const MediaQueryResultList&); |
| 143 MediaQueryResultList* viewportDependentMediaQueryResults() { return &m_viewp
ortDependentMediaQueryResults; } | 143 MediaQueryResultList* viewportDependentMediaQueryResults() { return &m_viewp
ortDependentMediaQueryResults; } |
| 144 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM
ediaQueryResults.isEmpty(); } | 144 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM
ediaQueryResults.isEmpty(); } |
| 145 bool mediaQueryAffectedByViewportChange() const; | 145 bool mediaQueryAffectedByViewportChange() const; |
| 146 | 146 |
| 147 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something
. | 147 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something
. |
| 148 void invalidateMatchedPropertiesCache(); | 148 void invalidateMatchedPropertiesCache(); |
| 149 | 149 |
| 150 void notifyResizeForViewportUnits(); | 150 void notifyResizeForViewportUnits(); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 OwnPtr<StyleResolverStats> m_styleResolverStats; | 265 OwnPtr<StyleResolverStats> m_styleResolverStats; |
| 266 | 266 |
| 267 // Use only for Internals::updateStyleAndReturnAffectedElementCount. | 267 // Use only for Internals::updateStyleAndReturnAffectedElementCount. |
| 268 unsigned m_accessCount; | 268 unsigned m_accessCount; |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 } // namespace blink | 271 } // namespace blink |
| 272 | 272 |
| 273 #endif // StyleResolver_h | 273 #endif // StyleResolver_h |
| OLD | NEW |