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/ProcessingInstruction.cpp

Issue 2337193004: Setting the link title may change the preferred set. (Closed)
Patch Set: Rebased Created 4 years, 3 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/ProcessingInstruction.cpp
diff --git a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
index 9ba21277b2f6be936e022b550c264c0c280d3b0c..a7c5b8c86cd1df4c1ba3c7397bbcaf924f0d7e45 100644
--- a/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
+++ b/third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp
@@ -207,7 +207,7 @@ void ProcessingInstruction::setCSSStyleSheet(const String& href, const KURL& bas
cssSheet->setDisabled(m_alternate);
cssSheet->setTitle(m_title);
if (!m_alternate && !m_title.isEmpty())
- document().styleEngine().setPreferredStylesheetSetNameIfNotSet(m_title);
+ document().styleEngine().setPreferredStylesheetSetNameIfNotSet(m_title, StyleEngine::DontUpdateActiveSheets);
cssSheet->setMediaQueries(MediaQuerySet::create(m_media));
m_sheet = cssSheet;

Powered by Google App Engine
This is Rietveld 408576698