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

Side by Side Diff: Source/core/dom/StyleElement.cpp

Issue 180523003: Move ContentSecurityPolicy to core/frame/csp (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/SecurityContext.cpp ('k') | Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Rob Buis 2 * Copyright (C) 2006, 2007 Rob Buis
3 * Copyright (C) 2008 Apple, Inc. All rights reserved. 3 * Copyright (C) 2008 Apple, Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 10 matching lines...) Expand all
21 #include "config.h" 21 #include "config.h"
22 #include "core/dom/StyleElement.h" 22 #include "core/dom/StyleElement.h"
23 23
24 #include "core/css/MediaList.h" 24 #include "core/css/MediaList.h"
25 #include "core/css/MediaQueryEvaluator.h" 25 #include "core/css/MediaQueryEvaluator.h"
26 #include "core/css/StyleSheetContents.h" 26 #include "core/css/StyleSheetContents.h"
27 #include "core/dom/Document.h" 27 #include "core/dom/Document.h"
28 #include "core/dom/Element.h" 28 #include "core/dom/Element.h"
29 #include "core/dom/ScriptableDocumentParser.h" 29 #include "core/dom/ScriptableDocumentParser.h"
30 #include "core/dom/StyleEngine.h" 30 #include "core/dom/StyleEngine.h"
31 #include "core/frame/csp/ContentSecurityPolicy.h"
31 #include "core/html/HTMLStyleElement.h" 32 #include "core/html/HTMLStyleElement.h"
32 #include "core/frame/ContentSecurityPolicy.h"
33 #include "platform/TraceEvent.h" 33 #include "platform/TraceEvent.h"
34 #include "wtf/text/StringBuilder.h" 34 #include "wtf/text/StringBuilder.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 static bool isCSS(Element* element, const AtomicString& type) 38 static bool isCSS(Element* element, const AtomicString& type)
39 { 39 {
40 return type.isEmpty() || (element->isHTMLElement() ? equalIgnoringCase(type, "text/css") : (type == "text/css")); 40 return type.isEmpty() || (element->isHTMLElement() ? equalIgnoringCase(type, "text/css") : (type == "text/css"));
41 } 41 }
42 42
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 document.styleEngine()->removePendingSheet(m_sheet->ownerNode()); 165 document.styleEngine()->removePendingSheet(m_sheet->ownerNode());
166 return true; 166 return true;
167 } 167 }
168 168
169 void StyleElement::startLoadingDynamicSheet(Document& document) 169 void StyleElement::startLoadingDynamicSheet(Document& document)
170 { 170 {
171 document.styleEngine()->addPendingSheet(); 171 document.styleEngine()->addPendingSheet();
172 } 172 }
173 173
174 } 174 }
OLDNEW
« no previous file with comments | « Source/core/dom/SecurityContext.cpp ('k') | Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698