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

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

Issue 28553005: Avoid parsing css text if there are identical inline style blocks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 void didAttach(); 172 void didAttach();
173 void didDetach(); 173 void didDetach();
174 bool shouldClearResolver() const; 174 bool shouldClearResolver() const;
175 StyleResolverChange resolverChanged(RecalcStyleTime, StyleResolverUpdateMode ); 175 StyleResolverChange resolverChanged(RecalcStyleTime, StyleResolverUpdateMode );
176 unsigned resolverAccessCount() const; 176 unsigned resolverAccessCount() const;
177 177
178 void collectDocumentActiveStyleSheets(StyleSheetCollectionBase&); 178 void collectDocumentActiveStyleSheets(StyleSheetCollectionBase&);
179 void markDocumentDirty(); 179 void markDocumentDirty();
180 180
181 static PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text, T extPosition startPosition, bool createdByParser);
182 static void removeSheet(StyleSheetContents*);
183 static void clearSheetCache();
184
181 private: 185 private:
182 StyleEngine(Document&); 186 StyleEngine(Document&);
183 187
184 StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); 188 StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
185 StyleSheetCollection* styleSheetCollectionFor(TreeScope&); 189 StyleSheetCollection* styleSheetCollectionFor(TreeScope&);
186 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); 190 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode);
187 void resolverThrowawayTimerFired(Timer<StyleEngine>*); 191 void resolverThrowawayTimerFired(Timer<StyleEngine>*);
188 192
189 void markTreeScopeDirty(TreeScope&); 193 void markTreeScopeDirty(TreeScope&);
190 194
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 unsigned m_lastResolverAccessCount; 242 unsigned m_lastResolverAccessCount;
239 Timer<StyleEngine> m_resolverThrowawayTimer; 243 Timer<StyleEngine> m_resolverThrowawayTimer;
240 OwnPtr<StyleResolver> m_resolver; 244 OwnPtr<StyleResolver> m_resolver;
241 245
242 RefPtr<CSSFontSelector> m_fontSelector; 246 RefPtr<CSSFontSelector> m_fontSelector;
243 }; 247 };
244 248
245 } 249 }
246 250
247 #endif 251 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698