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

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

Issue 468903002: No need to re-parse empty set of injected stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void removeStyleSheetCandidateNode(Node*); 87 void removeStyleSheetCandidateNode(Node*);
88 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc ope&); 88 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc ope&);
89 void modifiedStyleSheetCandidateNode(Node*); 89 void modifiedStyleSheetCandidateNode(Node*);
90 void enableExitTransitionStylesheets(); 90 void enableExitTransitionStylesheets();
91 void addXSLStyleSheet(ProcessingInstruction*, bool createdByParser); 91 void addXSLStyleSheet(ProcessingInstruction*, bool createdByParser);
92 void removeXSLStyleSheet(ProcessingInstruction*); 92 void removeXSLStyleSheet(ProcessingInstruction*);
93 93
94 void invalidateInjectedStyleSheetCache(); 94 void invalidateInjectedStyleSheetCache();
95 void updateInjectedStyleSheetCache() const; 95 void updateInjectedStyleSheetCache() const;
96 96
97 void compatibilityModeChanged();
98
97 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); 99 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet);
98 100
99 void clearMediaQueryRuleSetStyleSheets(); 101 void clearMediaQueryRuleSetStyleSheets();
100 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ; 102 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ;
101 void updateActiveStyleSheets(StyleResolverUpdateMode); 103 void updateActiveStyleSheets(StyleResolverUpdateMode);
102 104
103 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; } 105 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; }
104 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; } 106 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; }
105 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe etSetName = name; } 107 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe etSetName = name; }
106 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet SetName = name; } 108 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet SetName = name; }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 257
256 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; 258 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache;
257 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; 259 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache;
258 260
259 RefPtrWillBeMember<ProcessingInstruction> m_xslStyleSheet; 261 RefPtrWillBeMember<ProcessingInstruction> m_xslStyleSheet;
260 }; 262 };
261 263
262 } 264 }
263 265
264 #endif 266 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698