Index: Source/core/css/resolver/StyleResolver.h |
diff --git a/Source/core/css/resolver/StyleResolver.h b/Source/core/css/resolver/StyleResolver.h |
index 63c620b6234fd2fa8c2c7abc8054489329d7d4bc..3bd463a913cecdfff3cd6718a8d9f1f9de1eeedd 100644 |
--- a/Source/core/css/resolver/StyleResolver.h |
+++ b/Source/core/css/resolver/StyleResolver.h |
@@ -118,10 +118,6 @@ public: |
static PassRefPtr<RenderStyle> styleForDocument(Document&); |
- // FIXME: This only has 5 callers and should be removed. Callers should be explicit about |
- // their dependency on Document* instead of grabbing one through StyleResolver. |
- Document& document() { return *m_document; } |
- |
// FIXME: It could be better to call appendAuthorStyleSheets() directly after we factor StyleResolver further. |
// https://bugs.webkit.org/show_bug.cgi?id=108890 |
void appendAuthorStyleSheets(const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >&); |
@@ -216,6 +212,7 @@ private: |
void adjustRenderStyle(StyleResolverState&, Element*); |
void appendCSSStyleSheet(CSSStyleSheet*); |
+ void addRulesFromSheet(CSSStyleSheet*, TreeScope*, unsigned); |
void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId, unsigned rulesToInclude); |
void matchUARules(ElementRuleCollector&, RuleSet*); |
@@ -265,6 +262,8 @@ private: |
bool pseudoStyleForElementInternal(Element&, const PseudoStyleRequest&, RenderStyle* parentStyle, StyleResolverState&); |
+ Document& document() { return *m_document; } |
+ |
// FIXME: This likely belongs on RuleSet. |
typedef WillBeHeapHashMap<StringImpl*, RefPtrWillBeMember<StyleRuleKeyframes> > KeyframesRuleMap; |
KeyframesRuleMap m_keyframesRuleMap; |