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

Unified Diff: third_party/WebKit/Source/core/loader/HttpEquiv.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/HttpEquiv.cpp
diff --git a/third_party/WebKit/Source/core/loader/HttpEquiv.cpp b/third_party/WebKit/Source/core/loader/HttpEquiv.cpp
index e6537eeac58c8c7dfc5476ad23dd745ace4f6d40..2f5f664fea7004125db1b3815b3357a91524dafb 100644
--- a/third_party/WebKit/Source/core/loader/HttpEquiv.cpp
+++ b/third_party/WebKit/Source/core/loader/HttpEquiv.cpp
@@ -69,15 +69,7 @@ void HttpEquiv::processHttpEquivAcceptCH(Document& document, const AtomicString&
void HttpEquiv::processHttpEquivDefaultStyle(Document& document, const AtomicString& content)
{
- // The preferred style set has been overridden as per section
- // 14.3.2 of the HTML4.0 specification. We need to update the
- // sheet used variable and then update our style selector.
- // For more info, see the test at:
- // http://www.hixie.ch/tests/evil/css/import/main/preferred.html
- // -dwh
- document.styleEngine().setSelectedStylesheetSetName(content);
- document.styleEngine().setPreferredStylesheetSetName(content);
- document.styleEngine().resolverChanged(FullStyleUpdate);
+ document.styleEngine().setHttpDefaultStyle(content);
}
void HttpEquiv::processHttpEquivRefresh(Document& document, const AtomicString& content)
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleSheetCandidate.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698