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

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

Issue 1360723003: Non-Oilpan Memory: Fix HTMLViewSourceDocument and WebLeakDetector. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/html/HTMLViewSourceDocument.h ('k') | Source/web/WebLeakDetector.cpp » ('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) 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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLViewSourceDocument.h ('k') | Source/web/WebLeakDetector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698