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 "core/dom/ProcessingInstruction.h" | 21 #include "core/dom/ProcessingInstruction.h" |
22 | 22 |
| 23 #include <memory> |
23 #include "core/css/CSSStyleSheet.h" | 24 #include "core/css/CSSStyleSheet.h" |
24 #include "core/css/MediaList.h" | 25 #include "core/css/MediaList.h" |
25 #include "core/css/StyleSheetContents.h" | 26 #include "core/css/StyleSheetContents.h" |
26 #include "core/dom/Document.h" | 27 #include "core/dom/Document.h" |
27 #include "core/dom/IncrementLoadEventDelayCount.h" | 28 #include "core/dom/IncrementLoadEventDelayCount.h" |
28 #include "core/dom/StyleEngine.h" | 29 #include "core/dom/StyleEngine.h" |
29 #include "core/loader/resource/CSSStyleSheetResource.h" | 30 #include "core/loader/resource/CSSStyleSheetResource.h" |
30 #include "core/loader/resource/XSLStyleSheetResource.h" | 31 #include "core/loader/resource/XSLStyleSheetResource.h" |
31 #include "core/xml/DocumentXSLT.h" | 32 #include "core/xml/DocumentXSLT.h" |
32 #include "core/xml/XSLStyleSheet.h" | 33 #include "core/xml/XSLStyleSheet.h" |
33 #include "core/xml/parser/XMLDocumentParser.h" // for parseAttributes() | 34 #include "core/xml/parser/XMLDocumentParser.h" // for parseAttributes() |
34 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" | 35 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
35 #include "platform/loader/fetch/FetchRequest.h" | 36 #include "platform/loader/fetch/FetchRequest.h" |
36 #include "platform/loader/fetch/ResourceFetcher.h" | 37 #include "platform/loader/fetch/ResourceFetcher.h" |
37 #include <memory> | |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 inline ProcessingInstruction::ProcessingInstruction(Document& document, | 41 inline ProcessingInstruction::ProcessingInstruction(Document& document, |
42 const String& target, | 42 const String& target, |
43 const String& data) | 43 const String& data) |
44 : CharacterData(document, data, CreateOther), | 44 : CharacterData(document, data, CreateOther), |
45 m_target(target), | 45 m_target(target), |
46 m_loading(false), | 46 m_loading(false), |
47 m_alternate(false), | 47 m_alternate(false), |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 } | 292 } |
293 | 293 |
294 DEFINE_TRACE(ProcessingInstruction) { | 294 DEFINE_TRACE(ProcessingInstruction) { |
295 visitor->trace(m_sheet); | 295 visitor->trace(m_sheet); |
296 visitor->trace(m_listenerForXSLT); | 296 visitor->trace(m_listenerForXSLT); |
297 CharacterData::trace(visitor); | 297 CharacterData::trace(visitor); |
298 ResourceOwner<StyleSheetResource>::trace(visitor); | 298 ResourceOwner<StyleSheetResource>::trace(visitor); |
299 } | 299 } |
300 | 300 |
301 } // namespace blink | 301 } // namespace blink |
OLD | NEW |