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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 1769903002: Move preferred stylesheet logic into StyleEngine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/core/dom/StyleEngine.h
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.h b/third_party/WebKit/Source/core/dom/StyleEngine.h
index 5b84af1d58c311ca7fb60e994ec9015aba00b2b0..d1890678b8308b9452ba54dd37773b539e9decbb 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -99,14 +99,9 @@ public:
String preferredStylesheetSetName() const { return m_preferredStylesheetSetName; }
String selectedStylesheetSetName() const { return m_selectedStylesheetSetName; }
- void setPreferredStylesheetSetName(const String& name) { m_preferredStylesheetSetName = name; }
- void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheetSetName = name; }
-
- void selectStylesheetSetName(const String& name)
- {
- setPreferredStylesheetSetName(name);
- setSelectedStylesheetSetName(name);
- }
+ void setPreferredStylesheetSetNameIfNotSet(const String&);
+ void setSelectedStylesheetSetName(const String&);
+ void setHttpDefaultStyle(const String&);
void addPendingSheet();
void removePendingSheet(Node* styleSheetCandidateNode);

Powered by Google App Engine
This is Rietveld 408576698