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

Side by Side Diff: third_party/WebKit/Source/core/xml/DocumentXSLT.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/xml/DocumentXSLT.h" 5 #include "core/xml/DocumentXSLT.h"
6 6
7 #include "bindings/core/v8/DOMWrapperWorld.h" 7 #include "bindings/core/v8/DOMWrapperWorld.h"
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/V8AbstractEventListener.h" 9 #include "bindings/core/v8/V8AbstractEventListener.h"
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if (!processor->transformToString(&document, resultMIMEType, newSource, 100 if (!processor->transformToString(&document, resultMIMEType, newSource,
101 resultEncoding)) { 101 resultEncoding)) {
102 document.setParsingState(Document::FinishedParsing); 102 document.setParsingState(Document::FinishedParsing);
103 return; 103 return;
104 } 104 }
105 // FIXME: If the transform failed we should probably report an error (like 105 // FIXME: If the transform failed we should probably report an error (like
106 // Mozilla does). 106 // Mozilla does).
107 LocalFrame* ownerFrame = document.frame(); 107 LocalFrame* ownerFrame = document.frame();
108 processor->createDocumentFromSource(newSource, resultEncoding, resultMIMEType, 108 processor->createDocumentFromSource(newSource, resultEncoding, resultMIMEType,
109 &document, ownerFrame); 109 &document, ownerFrame);
110 InspectorInstrumentation::frameDocumentUpdated(ownerFrame); 110 probe::frameDocumentUpdated(ownerFrame);
111 document.setParsingState(Document::FinishedParsing); 111 document.setParsingState(Document::FinishedParsing);
112 } 112 }
113 113
114 ProcessingInstruction* DocumentXSLT::findXSLStyleSheet(Document& document) { 114 ProcessingInstruction* DocumentXSLT::findXSLStyleSheet(Document& document) {
115 for (Node* node = document.firstChild(); node; node = node->nextSibling()) { 115 for (Node* node = document.firstChild(); node; node = node->nextSibling()) {
116 if (node->getNodeType() != Node::kProcessingInstructionNode) 116 if (node->getNodeType() != Node::kProcessingInstructionNode)
117 continue; 117 continue;
118 118
119 ProcessingInstruction* pi = toProcessingInstruction(node); 119 ProcessingInstruction* pi = toProcessingInstruction(node);
120 if (pi->isXSL()) 120 if (pi->isXSL())
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 return *supplement; 190 return *supplement;
191 } 191 }
192 192
193 DEFINE_TRACE(DocumentXSLT) { 193 DEFINE_TRACE(DocumentXSLT) {
194 visitor->trace(m_transformSourceDocument); 194 visitor->trace(m_transformSourceDocument);
195 Supplement<Document>::trace(visitor); 195 Supplement<Document>::trace(visitor);
196 } 196 }
197 197
198 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698