| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void markDocumentDirty(); | 134 void markDocumentDirty(); |
| 135 | 135 |
| 136 PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text, TextPosi
tion startPosition, bool createdByParser); | 136 PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text, TextPosi
tion startPosition, bool createdByParser); |
| 137 void removeSheet(StyleSheetContents*); | 137 void removeSheet(StyleSheetContents*); |
| 138 | 138 |
| 139 void addScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scopedS
tyleResolvers.add(resolver); } | 139 void addScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scopedS
tyleResolvers.add(resolver); } |
| 140 void removeScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scop
edStyleResolvers.remove(resolver); } | 140 void removeScopedStyleResolver(const ScopedStyleResolver* resolver) { m_scop
edStyleResolvers.remove(resolver); } |
| 141 bool hasOnlyScopedResolverForDocument() const { return m_scopedStyleResolver
s.size() == 1; } | 141 bool hasOnlyScopedResolverForDocument() const { return m_scopedStyleResolver
s.size() == 1; } |
| 142 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; | 142 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; |
| 143 | 143 |
| 144 virtual void trace(Visitor*) override; | |
| 145 | |
| 146 private: | 144 private: |
| 147 // CSSFontSelectorClient implementation. | 145 // CSSFontSelectorClient implementation. |
| 148 virtual void fontsNeedUpdate(CSSFontSelector*) override; | 146 virtual void fontsNeedUpdate(CSSFontSelector*) override; |
| 149 | 147 |
| 150 private: | 148 private: |
| 151 StyleEngine(Document&); | 149 StyleEngine(Document&); |
| 152 | 150 |
| 153 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 151 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
| 154 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); | 152 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); |
| 155 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const
; | 153 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const
; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 200 |
| 203 RefPtr<CSSFontSelector> m_fontSelector; | 201 RefPtr<CSSFontSelector> m_fontSelector; |
| 204 | 202 |
| 205 HashMap<AtomicString, RawPtr<StyleSheetContents> > m_textToSheetCache; | 203 HashMap<AtomicString, RawPtr<StyleSheetContents> > m_textToSheetCache; |
| 206 HashMap<RawPtr<StyleSheetContents>, AtomicString> m_sheetToTextCache; | 204 HashMap<RawPtr<StyleSheetContents>, AtomicString> m_sheetToTextCache; |
| 207 }; | 205 }; |
| 208 | 206 |
| 209 } | 207 } |
| 210 | 208 |
| 211 #endif | 209 #endif |
| OLD | NEW |