| OLD | NEW |
| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/xml/DocumentXSLT.h" | 6 #include "core/xml/DocumentXSLT.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/DOMWrapperWorld.h" | 8 #include "bindings/core/v8/DOMWrapperWorld.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/V8AbstractEventListener.h" | 10 #include "bindings/core/v8/V8AbstractEventListener.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 DocumentXSLT& DocumentXSLT::from(DocumentSupplementable& document) | 189 DocumentXSLT& DocumentXSLT::from(DocumentSupplementable& document) |
| 190 { | 190 { |
| 191 DocumentXSLT* supplement = static_cast<DocumentXSLT*>(DocumentSupplement::fr
om(document, supplementName())); | 191 DocumentXSLT* supplement = static_cast<DocumentXSLT*>(DocumentSupplement::fr
om(document, supplementName())); |
| 192 if (!supplement) { | 192 if (!supplement) { |
| 193 supplement = new DocumentXSLT(); | 193 supplement = new DocumentXSLT(); |
| 194 DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBe
Noop(supplement)); | 194 DocumentSupplement::provideTo(document, supplementName(), adoptPtrWillBe
Noop(supplement)); |
| 195 } | 195 } |
| 196 return *supplement; | 196 return *supplement; |
| 197 } | 197 } |
| 198 | 198 |
| 199 void DocumentXSLT::trace(Visitor* visitor) | 199 DEFINE_TRACE(DocumentXSLT) |
| 200 { | 200 { |
| 201 visitor->trace(m_transformSourceDocument); | 201 visitor->trace(m_transformSourceDocument); |
| 202 DocumentSupplement::trace(visitor); | 202 DocumentSupplement::trace(visitor); |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace blink | 205 } // namespace blink |
| OLD | NEW |