Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: sky/engine/core/dom/StyleEngine.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/StyleElement.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sky/engine/core/dom/StyleElement.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698