X-Git-Url: https://git.webkit.org/?p=WebKit.git;a=blobdiff_plain;f=Source%2FWebCore%2Fcss%2FCSSStyleSelector.h;h=cfde5d0e9d8c183e1c8a74d42df4995a4329a3cc;hp=e035af2778e5d628f41e3c3496d45a8166ae4d13;hb=4b97bd1fe03f970c7dfa32f00f6ccce1cd69eb53;hpb=8e39c9b23cb4a3464bd8e61a878d8040aea13905 diff --git a/Source/WebCore/css/CSSStyleSelector.h b/Source/WebCore/css/CSSStyleSelector.h index e035af2778e5..cfde5d0e9d8c 100644 --- a/Source/WebCore/css/CSSStyleSelector.h +++ b/Source/WebCore/css/CSSStyleSelector.h @@ -42,10 +42,7 @@ class CSSProperty; class CSSFontFace; class CSSFontFaceRule; class CSSImageValue; -class CSSRuleData; -class CSSRuleDataList; class CSSRuleList; -class CSSRuleSet; class CSSSelector; class CSSStyleRule; class CSSStyleSheet; @@ -61,6 +58,8 @@ class KeyframeList; class KeyframeValue; class MediaQueryEvaluator; class Node; +class RuleData; +class RuleSet; class Settings; class StyleImage; class StyleSheet; @@ -182,27 +181,27 @@ public: void adjustRenderStyle(RenderStyle* styleToAdjust, RenderStyle* parentStyle, Element*); - void addMatchedRule(CSSRuleData* rule) { m_matchedRules.append(rule); } + void addMatchedRule(const RuleData* rule) { m_matchedRules.append(rule); } void addMatchedDeclaration(CSSMutableStyleDeclaration* decl); - void matchRules(CSSRuleSet*, int& firstRuleIndex, int& lastRuleIndex, bool includeEmptyRules); - void matchRulesForList(CSSRuleDataList*, int& firstRuleIndex, int& lastRuleIndex, bool includeEmptyRules); + void matchRules(RuleSet*, int& firstRuleIndex, int& lastRuleIndex, bool includeEmptyRules); + void matchRulesForList(const Vector*, int& firstRuleIndex, int& lastRuleIndex, bool includeEmptyRules); void sortMatchedRules(unsigned start, unsigned end); template void applyDeclarations(bool important, int startIndex, int endIndex); - void matchPageRules(CSSRuleSet*, bool isLeftPage, bool isFirstPage, const String& pageName); - void matchPageRulesForList(CSSRuleDataList*, bool isLeftPage, bool isFirstPage, const String& pageName); + void matchPageRules(RuleSet*, bool isLeftPage, bool isFirstPage, const String& pageName); + void matchPageRulesForList(const Vector*, bool isLeftPage, bool isFirstPage, const String& pageName); bool isLeftPage(int pageIndex) const; bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); } bool isFirstPage(int pageIndex) const; String pageName(int pageIndex) const; - OwnPtr m_authorStyle; - OwnPtr m_userStyle; + OwnPtr m_authorStyle; + OwnPtr m_userStyle; - OwnPtr m_siblingRules; + OwnPtr m_siblingRules; HashSet m_idsInRules; bool m_hasUAAppearance; @@ -293,7 +292,7 @@ public: // A buffer used to hold the set of matched rules for an element, and a temporary buffer used for // merge sorting. - Vector m_matchedRules; + Vector m_matchedRules; RefPtr m_ruleList;