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

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: 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/MediaQueryList.h ('k') | Source/core/css/MediaQueryMatcher.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 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 MediaQueryList::~MediaQueryList() 44 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQueryList)
45 {
46 }
47 45
48 String MediaQueryList::media() const 46 String MediaQueryList::media() const
49 { 47 {
50 return m_media->mediaText(); 48 return m_media->mediaText();
51 } 49 }
52 50
53 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener) 51 void MediaQueryList::addListener(PassRefPtrWillBeRawPtr<MediaQueryListListener> listener)
54 { 52 {
55 if (!listener) 53 if (!listener)
56 return; 54 return;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return m_matches; 89 return m_matches;
92 } 90 }
93 91
94 void MediaQueryList::trace(Visitor* visitor) 92 void MediaQueryList::trace(Visitor* visitor)
95 { 93 {
96 visitor->trace(m_matcher); 94 visitor->trace(m_matcher);
97 visitor->trace(m_media); 95 visitor->trace(m_media);
98 } 96 }
99 97
100 } 98 }
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryList.h ('k') | Source/core/css/MediaQueryMatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698