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

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

Issue 1754863002: Remove unused createdByParser flags and arguments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Second try Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
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 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ProcessingInstruction); 38 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ProcessingInstruction);
39 public: 39 public:
40 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const String& target, const String& data); 40 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const String& target, const String& data);
41 ~ProcessingInstruction() override; 41 ~ProcessingInstruction() override;
42 DECLARE_VIRTUAL_TRACE(); 42 DECLARE_VIRTUAL_TRACE();
43 43
44 const String& target() const { return m_target; } 44 const String& target() const { return m_target; }
45
46 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB yParser; }
47
48 const String& localHref() const { return m_localHref; } 45 const String& localHref() const { return m_localHref; }
49 StyleSheet* sheet() const { return m_sheet.get(); } 46 StyleSheet* sheet() const { return m_sheet.get(); }
50 47
51 bool isCSS() const { return m_isCSS; } 48 bool isCSS() const { return m_isCSS; }
52 bool isXSL() const { return m_isXSL; } 49 bool isXSL() const { return m_isXSL; }
53 50
54 void didAttributeChanged(); 51 void didAttributeChanged();
55 bool isLoading() const; 52 bool isLoading() const;
56 53
57 // For XSLT 54 // For XSLT
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 98
102 String debugName() const override { return "ProcessingInstruction"; } 99 String debugName() const override { return "ProcessingInstruction"; }
103 100
104 String m_target; 101 String m_target;
105 String m_localHref; 102 String m_localHref;
106 String m_title; 103 String m_title;
107 String m_media; 104 String m_media;
108 RefPtrWillBeMember<StyleSheet> m_sheet; 105 RefPtrWillBeMember<StyleSheet> m_sheet;
109 bool m_loading; 106 bool m_loading;
110 bool m_alternate; 107 bool m_alternate;
111 bool m_createdByParser;
112 bool m_isCSS; 108 bool m_isCSS;
113 bool m_isXSL; 109 bool m_isXSL;
114 110
115 RefPtrWillBeMember<DetachableEventListener> m_listenerForXSLT; 111 RefPtrWillBeMember<DetachableEventListener> m_listenerForXSLT;
116 }; 112 };
117 113
118 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, getNodeType() == Node::PROCESSING_ INSTRUCTION_NODE); 114 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, getNodeType() == Node::PROCESSING_ INSTRUCTION_NODE);
119 115
120 inline bool isXSLStyleSheet(const Node& node) 116 inline bool isXSLStyleSheet(const Node& node)
121 { 117 {
122 return node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessi ngInstruction(node).isXSL(); 118 return node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessi ngInstruction(node).isXSL();
123 } 119 }
124 120
125 } // namespace blink 121 } // namespace blink
126 122
127 #endif // ProcessingInstruction_h 123 #endif // ProcessingInstruction_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698