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

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

Issue 189543014: Ensure proper finalization of garbage-collected types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: finalize HashTable 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
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 23 matching lines...) Expand all
34 34
35 MediaQueryList::MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher> vector, PassRefPtrWillBeRawPtr<MediaQuerySet> media, bool matches) 35 MediaQueryList::MediaQueryList(PassRefPtrWillBeRawPtr<MediaQueryMatcher> vector, PassRefPtrWillBeRawPtr<MediaQuerySet> media, bool matches)
36 : m_matcher(vector) 36 : m_matcher(vector)
37 , m_media(media) 37 , m_media(media)
38 , m_evaluationRound(m_matcher->evaluationRound()) 38 , m_evaluationRound(m_matcher->evaluationRound())
39 , m_changeRound(m_evaluationRound - 1) // m_evaluationRound and m_changeRoun d initial values must be different. 39 , m_changeRound(m_evaluationRound - 1) // m_evaluationRound and m_changeRoun d initial values must be different.
40 , m_matches(matches) 40 , m_matches(matches)
41 { 41 {
42 } 42 }
43 43
44 #if !ENABLE(OILPAN)
44 MediaQueryList::~MediaQueryList() 45 MediaQueryList::~MediaQueryList()
45 { 46 {
46 } 47 }
48 #endif
47 49
48 String MediaQueryList::media() const 50 String MediaQueryList::media() const
49 { 51 {
50 return m_media->mediaText(); 52 return m_media->mediaText();
51 } 53 }
52 54
53 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener) 55 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener)
54 { 56 {
55 if (!listener) 57 if (!listener)
56 return; 58 return;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return m_matches; 93 return m_matches;
92 } 94 }
93 95
94 void MediaQueryList::trace(Visitor* visitor) 96 void MediaQueryList::trace(Visitor* visitor)
95 { 97 {
96 visitor->trace(m_matcher); 98 visitor->trace(m_matcher);
97 visitor->trace(m_media); 99 visitor->trace(m_media);
98 } 100 }
99 101
100 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698