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

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

Issue 139273002: Refactoring: Extract StyleSheetCandidate from DocumentStyleSheetCollection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to ToT 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
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.cpp ('k') | Source/core/dom/StyleSheetCandidate.h » ('j') | 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 bool needsUpdateActiveStylesheetsOnStyleRecalc() const { return m_needsUpdat eActiveStylesheetsOnStyleRecalc; } 109 bool needsUpdateActiveStylesheetsOnStyleRecalc() const { return m_needsUpdat eActiveStylesheetsOnStyleRecalc; }
110 110
111 void clearMediaQueryRuleSetStyleSheets(); 111 void clearMediaQueryRuleSetStyleSheets();
112 bool updateActiveStyleSheets(StyleResolverUpdateMode); 112 bool updateActiveStyleSheets(StyleResolverUpdateMode);
113 113
114 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; } 114 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN ame; }
115 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; } 115 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam e; }
116 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe etSetName = name; } 116 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe etSetName = name; }
117 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet SetName = name; } 117 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet SetName = name; }
118 118
119 void selectStylesheetSetName(const String& name)
120 {
121 setPreferredStylesheetSetName(name);
122 setSelectedStylesheetSetName(name);
123 }
124
119 void addPendingSheet(); 125 void addPendingSheet();
120 enum RemovePendingSheetNotificationType { 126 enum RemovePendingSheetNotificationType {
121 RemovePendingSheetNotifyImmediately, 127 RemovePendingSheetNotifyImmediately,
122 RemovePendingSheetNotifyLater 128 RemovePendingSheetNotifyLater
123 }; 129 };
124 void removePendingSheet(Node* styleSheetCandidateNode, RemovePendingSheetNot ificationType = RemovePendingSheetNotifyImmediately); 130 void removePendingSheet(Node* styleSheetCandidateNode, RemovePendingSheetNot ificationType = RemovePendingSheetNotifyImmediately);
125 131
126 bool hasPendingSheets() const { return m_pendingStylesheets > 0; } 132 bool hasPendingSheets() const { return m_pendingStylesheets > 0; }
127 bool haveStylesheetsLoaded() const { return !hasPendingSheets() || m_ignoreP endingStylesheets; } 133 bool haveStylesheetsLoaded() const { return !hasPendingSheets() || m_ignoreP endingStylesheets; }
128 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets; } 134 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets; }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 unsigned m_lastResolverAccessCount; 246 unsigned m_lastResolverAccessCount;
241 Timer<StyleEngine> m_resolverThrowawayTimer; 247 Timer<StyleEngine> m_resolverThrowawayTimer;
242 OwnPtr<StyleResolver> m_resolver; 248 OwnPtr<StyleResolver> m_resolver;
243 249
244 RefPtr<CSSFontSelector> m_fontSelector; 250 RefPtr<CSSFontSelector> m_fontSelector;
245 }; 251 };
246 252
247 } 253 }
248 254
249 #endif 255 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.cpp ('k') | Source/core/dom/StyleSheetCandidate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698