OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) | 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) |
7 * Copyright (C) 2011 Google Inc. All rights reserved. | 7 * Copyright (C) 2011 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
13 * | 13 * |
14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
18 * | 18 * |
19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "core/html/HTMLLinkElement.h" | 26 #include "core/html/HTMLLinkElement.h" |
27 | 27 |
28 #include "HTMLNames.h" | |
29 #include "RuntimeEnabledFeatures.h" | |
30 #include "bindings/v8/ScriptEventListener.h" | 28 #include "bindings/v8/ScriptEventListener.h" |
| 29 #include "core/HTMLNames.h" |
31 #include "core/css/MediaList.h" | 30 #include "core/css/MediaList.h" |
32 #include "core/css/MediaQueryEvaluator.h" | 31 #include "core/css/MediaQueryEvaluator.h" |
33 #include "core/css/StyleSheetContents.h" | 32 #include "core/css/StyleSheetContents.h" |
34 #include "core/css/resolver/StyleResolver.h" | 33 #include "core/css/resolver/StyleResolver.h" |
35 #include "core/dom/Attribute.h" | 34 #include "core/dom/Attribute.h" |
36 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
37 #include "core/events/Event.h" | 36 #include "core/events/Event.h" |
38 #include "core/events/EventSender.h" | 37 #include "core/events/EventSender.h" |
39 #include "core/dom/StyleEngine.h" | 38 #include "core/dom/StyleEngine.h" |
40 #include "core/fetch/CSSStyleSheetResource.h" | 39 #include "core/fetch/CSSStyleSheetResource.h" |
41 #include "core/fetch/FetchRequest.h" | 40 #include "core/fetch/FetchRequest.h" |
42 #include "core/fetch/ResourceFetcher.h" | 41 #include "core/fetch/ResourceFetcher.h" |
43 #include "core/frame/FrameView.h" | 42 #include "core/frame/FrameView.h" |
44 #include "core/frame/LocalFrame.h" | 43 #include "core/frame/LocalFrame.h" |
45 #include "core/frame/csp/ContentSecurityPolicy.h" | 44 #include "core/frame/csp/ContentSecurityPolicy.h" |
46 #include "core/html/LinkManifest.h" | 45 #include "core/html/LinkManifest.h" |
47 #include "core/html/imports/LinkImport.h" | 46 #include "core/html/imports/LinkImport.h" |
48 #include "core/loader/FrameLoader.h" | 47 #include "core/loader/FrameLoader.h" |
49 #include "core/loader/FrameLoaderClient.h" | 48 #include "core/loader/FrameLoaderClient.h" |
| 49 #include "platform/RuntimeEnabledFeatures.h" |
50 #include "wtf/StdLibExtras.h" | 50 #include "wtf/StdLibExtras.h" |
51 | 51 |
52 namespace WebCore { | 52 namespace WebCore { |
53 | 53 |
54 using namespace HTMLNames; | 54 using namespace HTMLNames; |
55 | 55 |
56 template <typename CharacterType> | 56 template <typename CharacterType> |
57 static void parseSizes(const CharacterType* value, unsigned length, Vector<IntSi
ze>& iconSizes) | 57 static void parseSizes(const CharacterType* value, unsigned length, Vector<IntSi
ze>& iconSizes) |
58 { | 58 { |
59 enum State { | 59 enum State { |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 removePendingSheet(); | 713 removePendingSheet(); |
714 } | 714 } |
715 | 715 |
716 void LinkStyle::trace(Visitor* visitor) | 716 void LinkStyle::trace(Visitor* visitor) |
717 { | 717 { |
718 visitor->trace(m_sheet); | 718 visitor->trace(m_sheet); |
719 LinkResource::trace(visitor); | 719 LinkResource::trace(visitor); |
720 } | 720 } |
721 | 721 |
722 } // namespace WebCore | 722 } // namespace WebCore |
OLD | NEW |