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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 PassRefPtr<StyleRuleList> styleRulesForElement(Element*, unsigned rulesToInc
lude); | 184 PassRefPtr<StyleRuleList> styleRulesForElement(Element*, unsigned rulesToInc
lude); |
185 | 185 |
186 // |properties| is an array with |count| elements. | 186 // |properties| is an array with |count| elements. |
187 void applyPropertiesToStyle(const CSSPropertyValue* properties, size_t count
, RenderStyle*); | 187 void applyPropertiesToStyle(const CSSPropertyValue* properties, size_t count
, RenderStyle*); |
188 | 188 |
189 ViewportStyleResolver* viewportStyleResolver() { return m_viewportStyleResol
ver.get(); } | 189 ViewportStyleResolver* viewportStyleResolver() { return m_viewportStyleResol
ver.get(); } |
190 | 190 |
191 void addMediaQueryResults(const MediaQueryResultList&); | 191 void addMediaQueryResults(const MediaQueryResultList&); |
192 MediaQueryResultList* viewportDependentMediaQueryResults() { return &m_viewp
ortDependentMediaQueryResults; } | 192 MediaQueryResultList* viewportDependentMediaQueryResults() { return &m_viewp
ortDependentMediaQueryResults; } |
193 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM
ediaQueryResults.isEmpty(); } | 193 bool hasViewportDependentMediaQueries() const { return !m_viewportDependentM
ediaQueryResults.isEmpty(); } |
194 bool affectedByViewportChange() const; | 194 bool mediaQueryAffectedByViewportChange() const; |
195 | 195 |
196 // FIXME: Regions should not require special logic in StyleResolver. | 196 // FIXME: Regions should not require special logic in StyleResolver. |
197 bool checkRegionStyle(Element* regionElement); | 197 bool checkRegionStyle(Element* regionElement); |
198 | 198 |
199 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something
. | 199 // FIXME: Rename to reflect the purpose, like didChangeFontSize or something
. |
200 void invalidateMatchedPropertiesCache(); | 200 void invalidateMatchedPropertiesCache(); |
201 | 201 |
| 202 void notifyResizeForViewportUnits(); |
| 203 |
202 // Exposed for RenderStyle::isStyleAvilable(). | 204 // Exposed for RenderStyle::isStyleAvilable(). |
203 static RenderStyle* styleNotYetAvailable() { return s_styleNotYetAvailable;
} | 205 static RenderStyle* styleNotYetAvailable() { return s_styleNotYetAvailable;
} |
204 | 206 |
205 // FIXME: StyleResolver should not have this member or method. | 207 // FIXME: StyleResolver should not have this member or method. |
206 InspectorCSSOMWrappers& inspectorCSSOMWrappers() { return m_inspectorCSSOMWr
appers; } | 208 InspectorCSSOMWrappers& inspectorCSSOMWrappers() { return m_inspectorCSSOMWr
appers; } |
207 | 209 |
208 const RuleFeatureSet& ensureRuleFeatureSet() | 210 const RuleFeatureSet& ensureRuleFeatureSet() |
209 { | 211 { |
210 if (hasPendingAuthorStyleSheets()) | 212 if (hasPendingAuthorStyleSheets()) |
211 appendPendingAuthorStyleSheets(); | 213 appendPendingAuthorStyleSheets(); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi
onElement, SelectorChecker::VisitedMatchDisabled); | 345 SelectorChecker::SelectorCheckingContext selectorCheckingContext(s, regi
onElement, SelectorChecker::VisitedMatchDisabled); |
344 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt
rategy()) == SelectorChecker::SelectorMatches) | 346 if (selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalSt
rategy()) == SelectorChecker::SelectorMatches) |
345 return true; | 347 return true; |
346 } | 348 } |
347 return false; | 349 return false; |
348 } | 350 } |
349 | 351 |
350 } // namespace WebCore | 352 } // namespace WebCore |
351 | 353 |
352 #endif // StyleResolver_h | 354 #endif // StyleResolver_h |
OLD | NEW |