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

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

Issue 1851743002: Simplify Supplementables post Oilpan. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 4 years, 8 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 return true; 185 return true;
186 } 186 }
187 187
188 const char* DocumentXSLT::supplementName() 188 const char* DocumentXSLT::supplementName()
189 { 189 {
190 return "DocumentXSLT"; 190 return "DocumentXSLT";
191 } 191 }
192 192
193 bool DocumentXSLT::hasTransformSourceDocument(Document& document) 193 bool DocumentXSLT::hasTransformSourceDocument(Document& document)
194 { 194 {
195 return static_cast<DocumentXSLT*>(HeapSupplement<Document>::from(document, s upplementName())); 195 return static_cast<DocumentXSLT*>(Supplement<Document>::from(document, suppl ementName()));
196 } 196 }
197 197
198 198
199 DocumentXSLT& DocumentXSLT::from(HeapSupplementable<Document>& document) 199 DocumentXSLT& DocumentXSLT::from(Supplementable<Document>& document)
200 { 200 {
201 DocumentXSLT* supplement = static_cast<DocumentXSLT*>(HeapSupplement<Documen t>::from(document, supplementName())); 201 DocumentXSLT* supplement = static_cast<DocumentXSLT*>(Supplement<Document>:: from(document, supplementName()));
202 if (!supplement) { 202 if (!supplement) {
203 supplement = new DocumentXSLT(); 203 supplement = new DocumentXSLT;
204 HeapSupplement<Document>::provideTo(document, supplementName(), adoptPtr WillBeNoop(supplement)); 204 Supplement<Document>::provideTo(document, supplementName(), supplement);
205 } 205 }
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 HeapSupplement<Document>::trace(visitor); 212 Supplement<Document>::trace(visitor);
213 } 213 }
214 214
215 } // namespace blink 215 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xml/DocumentXSLT.h ('k') | third_party/WebKit/Source/modules/crypto/WorkerGlobalScopeCrypto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698