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

Side by Side Diff: Source/core/html/DOMFormData.cpp

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/CollectionIndexCache.h ('k') | Source/core/html/FormAssociatedElement.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 key = entry.name(); 54 key = entry.name();
55 if (entry.isString()) 55 if (entry.isString())
56 value.setUSVString(entry.string()); 56 value.setUSVString(entry.string());
57 else if (entry.isFile()) 57 else if (entry.isFile())
58 value.setFile(entry.file()); 58 value.setFile(entry.file());
59 else 59 else
60 ASSERT_NOT_REACHED(); 60 ASSERT_NOT_REACHED();
61 return true; 61 return true;
62 } 62 }
63 63
64 void trace(Visitor* visitor) override 64 DEFINE_INLINE_VIRTUAL_TRACE()
65 { 65 {
66 visitor->trace(m_formData); 66 visitor->trace(m_formData);
67 PairIterable<String, FormDataEntryValue>::IterationSource::trace(visitor ); 67 PairIterable<String, FormDataEntryValue>::IterationSource::trace(visitor );
68 } 68 }
69 69
70 private: 70 private:
71 const RefPtrWillBeMember<DOMFormData> m_formData; 71 const RefPtrWillBeMember<DOMFormData> m_formData;
72 size_t m_current; 72 size_t m_current;
73 }; 73 };
74 74
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 { 142 {
143 setBlob(name, blob, filename); 143 setBlob(name, blob, filename);
144 } 144 }
145 145
146 PairIterable<String, FormDataEntryValue>::IterationSource* DOMFormData::startIte ration(ScriptState*, ExceptionState&) 146 PairIterable<String, FormDataEntryValue>::IterationSource* DOMFormData::startIte ration(ScriptState*, ExceptionState&)
147 { 147 {
148 return new DOMFormDataIterationSource(this); 148 return new DOMFormDataIterationSource(this);
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/CollectionIndexCache.h ('k') | Source/core/html/FormAssociatedElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698