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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 708233002: Remove many attributes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/editing/markup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index 2a140810c4196826157a05a688a88dc1baf68672..932aeb6c844728c71a25f73b072d15e762bb335e 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -1734,55 +1734,6 @@ CSSStyleSheet& Document::elementSheet()
return *m_elemSheet;
}
-void Document::processHttpEquiv(const AtomicString& equiv, const AtomicString& content, bool inDocumentHeadElement)
-{
- ASSERT(!equiv.isNull() && !content.isNull());
-
- if (equalIgnoringCase(equiv, "refresh")) {
- processHttpEquivRefresh(content);
- } else if (equalIgnoringCase(equiv, "content-language")) {
- setContentLanguage(content);
- }
-}
-
-void Document::processHttpEquivRefresh(const AtomicString& content)
-{
- maybeHandleHttpRefresh(content, HttpRefreshFromMetaTag);
-}
-
-void Document::maybeHandleHttpRefresh(const String& content, HttpRefreshType httpRefreshType)
-{
- // FIXME(sky): remove
-}
-
-void Document::processReferrerPolicy(const String& policy)
-{
- ASSERT(!policy.isNull());
-
- if (equalIgnoringCase(policy, "never")) {
- setReferrerPolicy(ReferrerPolicyNever);
- } else if (equalIgnoringCase(policy, "always")) {
- setReferrerPolicy(ReferrerPolicyAlways);
- } else if (equalIgnoringCase(policy, "origin")) {
- setReferrerPolicy(ReferrerPolicyOrigin);
- } else if (equalIgnoringCase(policy, "default")) {
- setReferrerPolicy(ReferrerPolicyDefault);
- } else {
- addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, ErrorMessageLevel, "Failed to set referrer policy: The value '" + policy + "' is not one of 'always', 'default', 'never', or 'origin'. Defaulting to 'never'."));
- setReferrerPolicy(ReferrerPolicyNever);
- }
-}
-
-void Document::setReferrerPolicy(ReferrerPolicy referrerPolicy)
-{
- // FIXME: Can we adopt the CSP referrer policy merge algorithm? Or does the web rely on being able to modify the referrer policy in-flight?
- if (m_didSetReferrerPolicy)
- UseCounter::count(this, UseCounter::ResetReferrerPolicy);
- m_didSetReferrerPolicy = true;
-
- m_referrerPolicy = referrerPolicy;
-}
-
String Document::outgoingReferrer()
{
// See http://www.whatwg.org/specs/web-apps/current-work/#fetching-resources
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/editing/markup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698