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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 1721673002: Removed Document::addedStyleSheet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 void removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember<const Sty leRuleFontFace>>&); 157 void removeFontFaceRules(const WillBeHeapVector<RawPtrWillBeMember<const Sty leRuleFontFace>>&);
158 void clearFontCache(); 158 void clearFontCache();
159 // updateGenericFontFamilySettings is used from WebSettingsImpl. 159 // updateGenericFontFamilySettings is used from WebSettingsImpl.
160 void updateGenericFontFamilySettings(); 160 void updateGenericFontFamilySettings();
161 161
162 void didDetach(); 162 void didDetach();
163 bool shouldClearResolver() const; 163 bool shouldClearResolver() const;
164 void resolverChanged(StyleResolverUpdateMode); 164 void resolverChanged(StyleResolverUpdateMode);
165 165
166 void markDocumentDirty();
167
168 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te xt, TextPosition startPosition); 166 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te xt, TextPosition startPosition);
169 void removeSheet(StyleSheetContents*); 167 void removeSheet(StyleSheetContents*);
170 168
171 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; 169 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const;
172 170
173 void platformColorsChanged(); 171 void platformColorsChanged();
174 172
175 void classChangedForElement(const SpaceSplitString& changedClasses, Element& ); 173 void classChangedForElement(const SpaceSplitString& changedClasses, Element& );
176 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&); 174 void classChangedForElement(const SpaceSplitString& oldClasses, const SpaceS plitString& newClasses, Element&);
177 void attributeChangedForElement(const QualifiedName& attributeName, Element& ); 175 void attributeChangedForElement(const QualifiedName& attributeName, Element& );
(...skipping 13 matching lines...) Expand all
191 void fontsNeedUpdate(CSSFontSelector*) override; 189 void fontsNeedUpdate(CSSFontSelector*) override;
192 190
193 private: 191 private:
194 StyleEngine(Document&); 192 StyleEngine(Document&);
195 193
196 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); 194 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
197 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); 195 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
198 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const ; 196 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const ;
199 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con st; 197 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con st;
200 198
199 void markDocumentDirty();
201 void markTreeScopeDirty(TreeScope&); 200 void markTreeScopeDirty(TreeScope&);
202 201
203 bool isMaster() const { return m_isMaster; } 202 bool isMaster() const { return m_isMaster; }
204 Document* master(); 203 Document* master();
205 Document& document() const { return *m_document; } 204 Document& document() const { return *m_document; }
206 205
207 typedef WillBeHeapHashSet<RawPtrWillBeMember<TreeScope>> UnorderedTreeScopeS et; 206 typedef WillBeHeapHashSet<RawPtrWillBeMember<TreeScope>> UnorderedTreeScopeS et;
208 207
209 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScopeSet&); 208 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScopeSet&);
210 209
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 266
268 OwnPtr<StyleResolverStats> m_styleResolverStats; 267 OwnPtr<StyleResolverStats> m_styleResolverStats;
269 unsigned m_styleForElementCount = 0; 268 unsigned m_styleForElementCount = 0;
270 269
271 friend class StyleEngineTest; 270 friend class StyleEngineTest;
272 }; 271 };
273 272
274 } // namespace blink 273 } // namespace blink
275 274
276 #endif 275 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698