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

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

Issue 1482433003: Sync cloneNode() IDL with the spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « third_party/WebKit/Source/core/dom/Node.idl ('k') | third_party/WebKit/Source/core/dom/Text.h » ('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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 void setEventListenerForXSLT(PassRefPtrWillBeRawPtr<DetachableEventListener> listener) { m_listenerForXSLT = listener; } 76 void setEventListenerForXSLT(PassRefPtrWillBeRawPtr<DetachableEventListener> listener) { m_listenerForXSLT = listener; }
77 EventListener* eventListenerForXSLT(); 77 EventListener* eventListenerForXSLT();
78 void clearEventListenerForXSLT(); 78 void clearEventListenerForXSLT();
79 79
80 private: 80 private:
81 ProcessingInstruction(Document&, const String& target, const String& data); 81 ProcessingInstruction(Document&, const String& target, const String& data);
82 82
83 String nodeName() const override; 83 String nodeName() const override;
84 NodeType nodeType() const override; 84 NodeType nodeType() const override;
85 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) override; 85 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override;
86 86
87 InsertionNotificationRequest insertedInto(ContainerNode*) override; 87 InsertionNotificationRequest insertedInto(ContainerNode*) override;
88 void removedFrom(ContainerNode*) override; 88 void removedFrom(ContainerNode*) override;
89 89
90 bool checkStyleSheet(String& href, String& charset); 90 bool checkStyleSheet(String& href, String& charset);
91 void process(const String& href, const String& charset); 91 void process(const String& href, const String& charset);
92 92
93 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override; 93 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override;
94 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) override; 94 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) override;
95 95
(...skipping 21 matching lines...) Expand all
117 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE); 117 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE);
118 118
119 inline bool isXSLStyleSheet(const Node& node) 119 inline bool isXSLStyleSheet(const Node& node)
120 { 120 {
121 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL(); 121 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL();
122 } 122 }
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // ProcessingInstruction_h 126 #endif // ProcessingInstruction_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.idl ('k') | third_party/WebKit/Source/core/dom/Text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698