OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2009, 2010 Apple 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 } | 302 } |
303 | 303 |
304 void HTMLViewSourceDocument::maybeAddSpanForAnnotation(SourceAnnotation annotati
on) | 304 void HTMLViewSourceDocument::maybeAddSpanForAnnotation(SourceAnnotation annotati
on) |
305 { | 305 { |
306 if (annotation == AnnotateSourceAsXSS) { | 306 if (annotation == AnnotateSourceAsXSS) { |
307 m_current = addSpanWithClassName("highlight"); | 307 m_current = addSpanWithClassName("highlight"); |
308 m_current->setAttribute(titleAttr, kXSSDetected); | 308 m_current->setAttribute(titleAttr, kXSSDetected); |
309 } | 309 } |
310 } | 310 } |
311 | 311 |
| 312 #if !ENABLE(OILPAN) |
| 313 void HTMLViewSourceDocument::dispose() |
| 314 { |
| 315 m_current.clear(); |
| 316 m_tbody.clear(); |
| 317 m_td.clear(); |
| 318 HTMLDocument::dispose(); |
| 319 } |
| 320 #endif |
| 321 |
312 DEFINE_TRACE(HTMLViewSourceDocument) | 322 DEFINE_TRACE(HTMLViewSourceDocument) |
313 { | 323 { |
314 visitor->trace(m_current); | 324 visitor->trace(m_current); |
315 visitor->trace(m_tbody); | 325 visitor->trace(m_tbody); |
316 visitor->trace(m_td); | 326 visitor->trace(m_td); |
317 HTMLDocument::trace(visitor); | 327 HTMLDocument::trace(visitor); |
318 } | 328 } |
319 | 329 |
320 } | 330 } |
OLD | NEW |