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

Side by Side Diff: Source/core/dom/ProcessingInstruction.h

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 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 20 matching lines...) Expand all
31 31
32 class StyleSheet; 32 class StyleSheet;
33 class CSSStyleSheet; 33 class CSSStyleSheet;
34 class EventListener; 34 class EventListener;
35 35
36 class ProcessingInstruction final : public CharacterData, private ResourceOwner< StyleSheetResource> { 36 class ProcessingInstruction final : public CharacterData, private ResourceOwner< StyleSheetResource> {
37 DEFINE_WRAPPERTYPEINFO(); 37 DEFINE_WRAPPERTYPEINFO();
38 public: 38 public:
39 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const String& target, const String& data); 39 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const String& target, const String& data);
40 virtual ~ProcessingInstruction(); 40 virtual ~ProcessingInstruction();
41 virtual void trace(Visitor*) override; 41 DECLARE_VIRTUAL_TRACE();
42 42
43 const String& target() const { return m_target; } 43 const String& target() const { return m_target; }
44 44
45 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB yParser; } 45 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB yParser; }
46 46
47 const String& localHref() const { return m_localHref; } 47 const String& localHref() const { return m_localHref; }
48 StyleSheet* sheet() const { return m_sheet.get(); } 48 StyleSheet* sheet() const { return m_sheet.get(); }
49 void setCSSStyleSheet(PassRefPtrWillBeRawPtr<CSSStyleSheet>); 49 void setCSSStyleSheet(PassRefPtrWillBeRawPtr<CSSStyleSheet>);
50 50
51 bool isCSS() const { return m_isCSS; } 51 bool isCSS() const { return m_isCSS; }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE); 114 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE);
115 115
116 inline bool isXSLStyleSheet(const Node& node) 116 inline bool isXSLStyleSheet(const Node& node)
117 { 117 {
118 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL(); 118 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL();
119 } 119 }
120 120
121 } // namespace blink 121 } // namespace blink
122 122
123 #endif // ProcessingInstruction_h 123 #endif // ProcessingInstruction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698