OLD | NEW |
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 11 matching lines...) Expand all Loading... |
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/DocumentStyleSheetCollection.h" | 28 #include "core/dom/DocumentStyleSheetCollection.h" |
29 #include "core/dom/Element.h" | 29 #include "core/dom/Element.h" |
30 #include "core/dom/ScriptableDocumentParser.h" | 30 #include "core/dom/ScriptableDocumentParser.h" |
31 #include "core/page/ContentSecurityPolicy.h" | 31 #include "core/page/ContentSecurityPolicy.h" |
32 #include <wtf/text/StringBuilder.h> | 32 #include "wtf/text/StringBuilder.h" |
33 #include <wtf/text/TextPosition.h> | 33 #include "wtf/text/TextPosition.h" |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 static bool isCSS(Element* element, const AtomicString& type) | 37 static bool isCSS(Element* element, const AtomicString& type) |
38 { | 38 { |
39 return type.isEmpty() || (element->isHTMLElement() ? equalIgnoringCase(type,
"text/css") : (type == "text/css")); | 39 return type.isEmpty() || (element->isHTMLElement() ? equalIgnoringCase(type,
"text/css") : (type == "text/css")); |
40 } | 40 } |
41 | 41 |
42 StyleElement::StyleElement(Document* document, bool createdByParser) | 42 StyleElement::StyleElement(Document* document, bool createdByParser) |
43 : m_createdByParser(createdByParser) | 43 : m_createdByParser(createdByParser) |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 return true; | 172 return true; |
173 } | 173 } |
174 | 174 |
175 void StyleElement::startLoadingDynamicSheet(Document* document) | 175 void StyleElement::startLoadingDynamicSheet(Document* document) |
176 { | 176 { |
177 ASSERT(document); | 177 ASSERT(document); |
178 document->styleSheetCollection()->addPendingSheet(); | 178 document->styleSheetCollection()->addPendingSheet(); |
179 } | 179 } |
180 | 180 |
181 } | 181 } |
OLD | NEW |