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

Side by Side Diff: Source/core/dom/DocumentParser.cpp

Issue 947393002: InlinedVisitor: Migrate dom 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
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DocumentParser::~DocumentParser() 44 DocumentParser::~DocumentParser()
45 { 45 {
46 #if !ENABLE(OILPAN) 46 #if !ENABLE(OILPAN)
47 // Document is expected to call detach() before releasing its ref. 47 // Document is expected to call detach() before releasing its ref.
48 // This ASSERT is slightly awkward for parsers with a fragment case 48 // This ASSERT is slightly awkward for parsers with a fragment case
49 // as there is no Document to release the ref. 49 // as there is no Document to release the ref.
50 ASSERT(!m_document); 50 ASSERT(!m_document);
51 #endif 51 #endif
52 } 52 }
53 53
54 void DocumentParser::trace(Visitor* visitor) 54 DEFINE_TRACE(DocumentParser)
55 { 55 {
56 visitor->trace(m_document); 56 visitor->trace(m_document);
57 #if ENABLE(OILPAN) 57 #if ENABLE(OILPAN)
58 visitor->trace(m_clients); 58 visitor->trace(m_clients);
59 #endif 59 #endif
60 } 60 }
61 61
62 void DocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder>) 62 void DocumentParser::setDecoder(PassOwnPtr<TextResourceDecoder>)
63 { 63 {
64 ASSERT_NOT_REACHED(); 64 ASSERT_NOT_REACHED();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 m_clients.add(client); 110 m_clients.add(client);
111 } 111 }
112 112
113 void DocumentParser::removeClient(DocumentParserClient* client) 113 void DocumentParser::removeClient(DocumentParserClient* client)
114 { 114 {
115 m_clients.remove(client); 115 m_clients.remove(client);
116 } 116 }
117 117
118 }; 118 };
119 119
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698