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

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

Issue 2079303002: Move preferred stylesheet set out of active sheet update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 68c6e2d0a2605b0311974ff2ea688e88b7db9baf..2ffe72b632cb27050fec4286cc4342278e7971e8 100644
--- a/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp
@@ -82,12 +82,6 @@ bool StyleSheetCandidate::isEnabledAndLoading() const
return isHTMLLink() && !toHTMLLinkElement(node()).isDisabled() && toHTMLLinkElement(node()).styleSheetIsLoading();
}
-bool StyleSheetCandidate::hasPreferrableName() const
-{
- DCHECK(isEnabledAndLoading() || sheet());
- return !isEnabledViaScript() && !title().isEmpty() && !isAlternate();
-}
-
bool StyleSheetCandidate::canBeActivated(const String& currentPreferrableName) const
{
StyleSheet* sheet = this->sheet();
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleSheetCandidate.h ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698