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

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

Issue 412183003: bindings: Makes more DOM classes inherit from ScriptWrappable (part 3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reverted RGBColor and Rect. Created 6 years, 4 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 #if ENABLE(OILPAN) 175 #if ENABLE(OILPAN)
176 visitor->trace(m_queries); 176 visitor->trace(m_queries);
177 #endif 177 #endif
178 } 178 }
179 179
180 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSStyleSheet* parentSheet) 180 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSStyleSheet* parentSheet)
181 : m_mediaQueries(mediaQueries) 181 : m_mediaQueries(mediaQueries)
182 , m_parentStyleSheet(parentSheet) 182 , m_parentStyleSheet(parentSheet)
183 , m_parentRule(nullptr) 183 , m_parentRule(nullptr)
184 { 184 {
185 ScriptWrappable::init(this);
185 } 186 }
186 187
187 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSRule* parentRule) 188 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSRule* parentRule)
188 : m_mediaQueries(mediaQueries) 189 : m_mediaQueries(mediaQueries)
189 , m_parentStyleSheet(nullptr) 190 , m_parentStyleSheet(nullptr)
190 , m_parentRule(parentRule) 191 , m_parentRule(parentRule)
191 { 192 {
193 ScriptWrappable::init(this);
192 } 194 }
193 195
194 MediaList::~MediaList() 196 MediaList::~MediaList()
195 { 197 {
196 } 198 }
197 199
198 void MediaList::setMediaText(const String& value) 200 void MediaList::setMediaText(const String& value)
199 { 201 {
200 CSSStyleSheet::RuleMutationScope mutationScope(m_parentRule); 202 CSSStyleSheet::RuleMutationScope mutationScope(m_parentRule);
201 203
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 316 }
315 } 317 }
316 } 318 }
317 } 319 }
318 320
319 if (suspiciousType && !dotsPerPixelUsed) 321 if (suspiciousType && !dotsPerPixelUsed)
320 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText( ), suspiciousType); 322 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText( ), suspiciousType);
321 } 323 }
322 324
323 } 325 }
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