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

Side by Side Diff: Source/core/css/MediaQueryMatcher.cpp

Issue 189543014: Ensure proper finalization of garbage-collected types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase and sign error in Vector Created 6 years, 9 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/css/MediaQueryMatcher.h ('k') | Source/core/css/Rect.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 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 visitor->trace(m_query); 55 visitor->trace(m_query);
56 } 56 }
57 57
58 MediaQueryMatcher::MediaQueryMatcher(Document* document) 58 MediaQueryMatcher::MediaQueryMatcher(Document* document)
59 : m_document(document) 59 : m_document(document)
60 , m_evaluationRound(1) 60 , m_evaluationRound(1)
61 { 61 {
62 ASSERT(m_document); 62 ASSERT(m_document);
63 } 63 }
64 64
65 MediaQueryMatcher::~MediaQueryMatcher() 65 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQueryMatcher)
66 {
67 }
68 66
69 void MediaQueryMatcher::documentDestroyed() 67 void MediaQueryMatcher::documentDestroyed()
70 { 68 {
71 m_listeners.clear(); 69 m_listeners.clear();
72 m_document = 0; 70 m_document = 0;
73 } 71 }
74 72
75 AtomicString MediaQueryMatcher::mediaType() const 73 AtomicString MediaQueryMatcher::mediaType() const
76 { 74 {
77 if (!m_document || !m_document->frame() || !m_document->frame()->view()) 75 if (!m_document || !m_document->frame() || !m_document->frame()->view())
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void MediaQueryMatcher::trace(Visitor* visitor) 160 void MediaQueryMatcher::trace(Visitor* visitor)
163 { 161 {
164 // We don't support tracing of vectors of OwnPtrs (ie. Vector<OwnPtr<Listene r> >). 162 // We don't support tracing of vectors of OwnPtrs (ie. Vector<OwnPtr<Listene r> >).
165 // Since this is a transitional object we are just ifdef'ing it out when oil pan is not enabled. 163 // Since this is a transitional object we are just ifdef'ing it out when oil pan is not enabled.
166 #if ENABLE(OILPAN) 164 #if ENABLE(OILPAN)
167 visitor->trace(m_listeners); 165 visitor->trace(m_listeners);
168 #endif 166 #endif
169 } 167 }
170 168
171 } 169 }
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryMatcher.h ('k') | Source/core/css/Rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698