| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |