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

Unified Diff: third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp

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/StyleSheetCandidate.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
index 4db3173b2d4fa1bc4e38a4342929d14ca2006936..f4e5551a159119b7d40a74ff49c61b26e91885e7 100644
--- a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
@@ -82,10 +82,10 @@ bool StyleSheetCandidate::isEnabledAndLoading() const
return isHTMLLink() && !toHTMLLinkElement(node()).isDisabled() && toHTMLLinkElement(node()).styleSheetIsLoading();
}
-bool StyleSheetCandidate::hasPreferrableName(const String& currentPreferrableName) const
+bool StyleSheetCandidate::hasPreferrableName() const
{
ASSERT(isEnabledAndLoading() || sheet());
- return !isEnabledViaScript() && !title().isEmpty() && !isAlternate() && currentPreferrableName.isEmpty();
+ return !isEnabledViaScript() && !title().isEmpty() && !isAlternate();
}
bool StyleSheetCandidate::canBeActivated(const String& currentPreferrableName) const
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleSheetCandidate.h ('k') | third_party/WebKit/Source/core/loader/HttpEquiv.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698