OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2008, 2009 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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #include "config.h" | 21 #include "config.h" |
22 #include "core/dom/ProcessingInstruction.h" | 22 #include "core/dom/ProcessingInstruction.h" |
23 | 23 |
24 #include "core/css/CSSStyleSheet.h" | 24 #include "core/css/CSSStyleSheet.h" |
25 #include "core/css/MediaList.h" | 25 #include "core/css/MediaList.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/ExceptionCode.h" | |
30 #include "core/loader/FrameLoader.h" | |
31 #include "core/loader/cache/CachedCSSStyleSheet.h" | 29 #include "core/loader/cache/CachedCSSStyleSheet.h" |
32 #include "core/loader/cache/CachedResourceLoader.h" | 30 #include "core/loader/cache/CachedResourceLoader.h" |
33 #include "core/loader/cache/CachedResourceRequest.h" | 31 #include "core/loader/cache/CachedResourceRequest.h" |
34 #include "core/loader/cache/CachedResourceRequestInitiators.h" | 32 #include "core/loader/cache/CachedResourceRequestInitiators.h" |
35 #include "core/loader/cache/CachedXSLStyleSheet.h" | 33 #include "core/loader/cache/CachedXSLStyleSheet.h" |
36 #include "core/page/Frame.h" | |
37 #include "core/xml/XSLStyleSheet.h" | 34 #include "core/xml/XSLStyleSheet.h" |
38 #include "core/xml/parser/XMLDocumentParser.h" // for parseAttributes() | 35 #include "core/xml/parser/XMLDocumentParser.h" // for parseAttributes() |
39 | 36 |
40 namespace WebCore { | 37 namespace WebCore { |
41 | 38 |
42 inline ProcessingInstruction::ProcessingInstruction(Document* document, const St
ring& target, const String& data) | 39 inline ProcessingInstruction::ProcessingInstruction(Document* document, const St
ring& target, const String& data) |
43 : Node(document, CreateOther) | 40 : Node(document, CreateOther) |
44 , m_target(target) | 41 , m_target(target) |
45 , m_data(data) | 42 , m_data(data) |
46 , m_cachedSheet(0) | 43 , m_cachedSheet(0) |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 document()->styleResolverChanged(DeferRecalcStyle); | 302 document()->styleResolverChanged(DeferRecalcStyle); |
306 } | 303 } |
307 | 304 |
308 void ProcessingInstruction::finishParsingChildren() | 305 void ProcessingInstruction::finishParsingChildren() |
309 { | 306 { |
310 m_createdByParser = false; | 307 m_createdByParser = false; |
311 Node::finishParsingChildren(); | 308 Node::finishParsingChildren(); |
312 } | 309 } |
313 | 310 |
314 } // namespace | 311 } // namespace |
OLD | NEW |