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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes 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
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 26 matching lines...) Expand all
37 { 37 {
38 return true; 38 return true;
39 } 39 }
40 40
41 virtual void handleEvent(ScriptState* scriptState, Event* event) 41 virtual void handleEvent(ScriptState* scriptState, Event* event)
42 { 42 {
43 ASSERT(RuntimeEnabledFeatures::xsltEnabled()); 43 ASSERT(RuntimeEnabledFeatures::xsltEnabled());
44 ASSERT(event->type() == "DOMContentLoaded"); 44 ASSERT(event->type() == "DOMContentLoaded");
45 ScriptState::Scope scope(scriptState); 45 ScriptState::Scope scope(scriptState);
46 46
47 Document& document = *toDocument(scriptState->executionContext()); 47 Document& document = *toDocument(scriptState->getExecutionContext());
48 ASSERT(!document.parsing()); 48 ASSERT(!document.parsing());
49 49
50 // Processing instruction (XML documents only). 50 // Processing instruction (XML documents only).
51 // We don't support linking to embedded CSS stylesheets, 51 // We don't support linking to embedded CSS stylesheets,
52 // see <https://bugs.webkit.org/show_bug.cgi?id=49281> for discussion. 52 // see <https://bugs.webkit.org/show_bug.cgi?id=49281> for discussion.
53 // Don't apply XSL transforms to already transformed documents. 53 // Don't apply XSL transforms to already transformed documents.
54 if (DocumentXSLT::hasTransformSourceDocument(document)) 54 if (DocumentXSLT::hasTransformSourceDocument(document))
55 return; 55 return;
56 56
57 ProcessingInstruction* pi = DocumentXSLT::findXSLStyleSheet(document); 57 ProcessingInstruction* pi = DocumentXSLT::findXSLStyleSheet(document);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 return *supplement; 206 return *supplement;
207 } 207 }
208 208
209 DEFINE_TRACE(DocumentXSLT) 209 DEFINE_TRACE(DocumentXSLT)
210 { 210 {
211 visitor->trace(m_transformSourceDocument); 211 visitor->trace(m_transformSourceDocument);
212 WillBeHeapSupplement<Document>::trace(visitor); 212 WillBeHeapSupplement<Document>::trace(visitor);
213 } 213 }
214 214
215 } // namespace blink 215 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698