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

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

Issue 844963002: Refactor StyleResolver::matchAuthorRules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@style-scoped-20150109
Patch Set: Rebased Created 5 years, 11 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
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void didDetach(); 161 void didDetach();
162 bool shouldClearResolver() const; 162 bool shouldClearResolver() const;
163 void resolverChanged(StyleResolverUpdateMode); 163 void resolverChanged(StyleResolverUpdateMode);
164 unsigned resolverAccessCount() const; 164 unsigned resolverAccessCount() const;
165 165
166 void markDocumentDirty(); 166 void markDocumentDirty();
167 167
168 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te xt, TextPosition startPosition, bool createdByParser); 168 PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& te xt, TextPosition startPosition, bool createdByParser);
169 void removeSheet(StyleSheetContents*); 169 void removeSheet(StyleSheetContents*);
170 170
171 bool onlyDocumentHasStyles() const { return m_activeTreeScopes.isEmpty(); }
172 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const; 171 void collectScopedStyleFeaturesTo(RuleFeatureSet&) const;
173 172
174 void platformColorsChanged(); 173 void platformColorsChanged();
175 174
176 virtual void trace(Visitor*) override; 175 virtual void trace(Visitor*) override;
177 176
178 private: 177 private:
179 // CSSFontSelectorClient implementation. 178 // CSSFontSelectorClient implementation.
180 virtual void fontsNeedUpdate(CSSFontSelector*) override; 179 virtual void fontsNeedUpdate(CSSFontSelector*) override;
181 180
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 292
294 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; 293 RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
295 294
296 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; 295 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache;
297 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; 296 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache;
298 }; 297 };
299 298
300 } 299 }
301 300
302 #endif 301 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698