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

Unified Diff: third_party/WebKit/Source/core/dom/ParserContentPolicy.h

Issue 2123873002: Remove unused ParserContentPolicy, disallowScriptingContent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | 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/dom/ParserContentPolicy.h
diff --git a/third_party/WebKit/Source/core/dom/ParserContentPolicy.h b/third_party/WebKit/Source/core/dom/ParserContentPolicy.h
index 0eae0d0ff846af7531fa38513cbb3e165efb5aff..23167e67a86f3b3e7b6af5c26244bc9450ad87eb 100644
--- a/third_party/WebKit/Source/core/dom/ParserContentPolicy.h
+++ b/third_party/WebKit/Source/core/dom/ParserContentPolicy.h
@@ -40,13 +40,6 @@ static inline bool scriptingContentIsAllowed(ParserContentPolicy parserContentPo
return parserContentPolicy == AllowScriptingContent || parserContentPolicy == AllowScriptingContentAndDoNotMarkAlreadyStarted;
}
-static inline ParserContentPolicy disallowScriptingContent(ParserContentPolicy parserContentPolicy)
-{
- if (!scriptingContentIsAllowed(parserContentPolicy))
- return parserContentPolicy;
- return DisallowScriptingContent;
-}
-
static inline bool pluginContentIsAllowed(ParserContentPolicy parserContentPolicy)
{
return parserContentPolicy != DisallowScriptingAndPluginContent;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698