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

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

Issue 27537009: Avoid always style recalc when removing stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ~StyleEngine(); 56 ~StyleEngine();
57 57
58 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList(TreeScope&); 58 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList(TreeScope&);
59 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const; 59 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const;
60 60
61 CSSStyleSheet* pageUserSheet(); 61 CSSStyleSheet* pageUserSheet();
62 const Vector<RefPtr<CSSStyleSheet> >& documentUserStyleSheets() const { retu rn m_userStyleSheets; } 62 const Vector<RefPtr<CSSStyleSheet> >& documentUserStyleSheets() const { retu rn m_userStyleSheets; }
63 const Vector<RefPtr<CSSStyleSheet> >& documentAuthorStyleSheets() const { re turn m_authorStyleSheets; } 63 const Vector<RefPtr<CSSStyleSheet> >& documentAuthorStyleSheets() const { re turn m_authorStyleSheets; }
64 const Vector<RefPtr<CSSStyleSheet> >& injectedAuthorStyleSheets() const; 64 const Vector<RefPtr<CSSStyleSheet> >& injectedAuthorStyleSheets() const;
65 65
66 void modifiedStyleSheet(StyleSheet*);
66 void addStyleSheetCandidateNode(Node*, bool createdByParser); 67 void addStyleSheetCandidateNode(Node*, bool createdByParser);
67 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode = 0); 68 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode = 0);
68 void modifiedStyleSheetCandidateNode(Node*); 69 void modifiedStyleSheetCandidateNode(Node*);
69 70
70 void clearPageUserSheet(); 71 void clearPageUserSheet();
71 void updatePageUserSheet(); 72 void updatePageUserSheet();
72 void invalidateInjectedStyleSheetCache(); 73 void invalidateInjectedStyleSheetCache();
73 void updateInjectedStyleSheetCache() const; 74 void updateInjectedStyleSheetCache() const;
74 75
75 void addAuthorSheet(PassRefPtr<StyleSheetContents> authorSheet); 76 void addAuthorSheet(PassRefPtr<StyleSheetContents> authorSheet);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool m_usesSiblingRules; 153 bool m_usesSiblingRules;
153 bool m_usesSiblingRulesOverride; 154 bool m_usesSiblingRulesOverride;
154 bool m_usesFirstLineRules; 155 bool m_usesFirstLineRules;
155 bool m_usesFirstLetterRules; 156 bool m_usesFirstLetterRules;
156 bool m_usesRemUnits; 157 bool m_usesRemUnits;
157 }; 158 };
158 159
159 } 160 }
160 161
161 #endif 162 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698