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

Side by Side Diff: Source/core/css/MediaList.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/MediaList.h ('k') | Source/core/css/MediaQueryList.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 { 56 {
57 } 57 }
58 58
59 MediaQuerySet::MediaQuerySet(const MediaQuerySet& o) 59 MediaQuerySet::MediaQuerySet(const MediaQuerySet& o)
60 : m_queries(o.m_queries.size()) 60 : m_queries(o.m_queries.size())
61 { 61 {
62 for (unsigned i = 0; i < m_queries.size(); ++i) 62 for (unsigned i = 0; i < m_queries.size(); ++i)
63 m_queries[i] = o.m_queries[i]->copy(); 63 m_queries[i] = o.m_queries[i]->copy();
64 } 64 }
65 65
66 MediaQuerySet::~MediaQuerySet() 66 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(MediaQuerySet)
67 {
68 }
69 67
70 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS tring) 68 PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS tring)
71 { 69 {
72 if (mediaString.isEmpty()) 70 if (mediaString.isEmpty())
73 return MediaQuerySet::create(); 71 return MediaQuerySet::create();
74 72
75 BisonCSSParser parser(strictCSSParserContext()); 73 BisonCSSParser parser(strictCSSParserContext());
76 return parser.parseMediaQueryList(mediaString); 74 return parser.parseMediaQueryList(mediaString);
77 } 75 }
78 76
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 if ((primitiveValue->isDotsPerInch() || primitiveValue->isDo tsPerCentimeter()) && !overriden.contains(expression->mediaFeature())) 299 if ((primitiveValue->isDotsPerInch() || primitiveValue->isDo tsPerCentimeter()) && !overriden.contains(expression->mediaFeature()))
302 addResolutionWarningMessageToConsole(document, mediaQuer ySet->mediaText(), primitiveValue); 300 addResolutionWarningMessageToConsole(document, mediaQuer ySet->mediaText(), primitiveValue);
303 } 301 }
304 overriden.add(expression->mediaFeature()); 302 overriden.add(expression->mediaFeature());
305 } 303 }
306 } 304 }
307 } 305 }
308 } 306 }
309 307
310 } 308 }
OLDNEW
« no previous file with comments | « Source/core/css/MediaList.h ('k') | Source/core/css/MediaQueryList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698