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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/StyleEngine.h
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h
index cc0bba1d195a25c8362e14d1c918031c64583245..7bcbee7400b9f4aae0585ca904cf5cdff0553b7a 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -178,6 +178,10 @@ public:
void collectDocumentActiveStyleSheets(StyleSheetCollectionBase&);
void markDocumentDirty();
+ static PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text, TextPosition startPosition, bool createdByParser);
+ static void removeSheet(StyleSheetContents*);
+ static void clearSheetCache();
+
private:
StyleEngine(Document&);

Powered by Google App Engine
This is Rietveld 408576698