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

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

Issue 22887044: [oilpan] Make the oilpan branch build on Mac. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Add FIXME. Created 7 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.cpp ('k') | Source/core/css/Pair.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 * CSS Media Query 2 * CSS Media Query
3 * 3 *
4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>. 4 * Copyright (C) 2006 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>.
5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6 * Copyright (C) 2013 Apple Inc. All rights reserved. 6 * Copyright (C) 2013 Apple Inc. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 || mediaFeature == MediaFeatureNames::transitionMediaFeature 142 || mediaFeature == MediaFeatureNames::transitionMediaFeature
143 || mediaFeature == MediaFeatureNames::animationMediaFeature 143 || mediaFeature == MediaFeatureNames::animationMediaFeature
144 || mediaFeature == MediaFeatureNames::view_modeMediaFeature 144 || mediaFeature == MediaFeatureNames::view_modeMediaFeature
145 || mediaFeature == MediaFeatureNames::pointerMediaFeature 145 || mediaFeature == MediaFeatureNames::pointerMediaFeature
146 || mediaFeature == MediaFeatureNames::device_pixel_ratioMediaFeature 146 || mediaFeature == MediaFeatureNames::device_pixel_ratioMediaFeature
147 || mediaFeature == MediaFeatureNames::resolutionMediaFeature; 147 || mediaFeature == MediaFeatureNames::resolutionMediaFeature;
148 } 148 }
149 149
150 inline MediaQueryExp::MediaQueryExp(const AtomicString& mediaFeature, CSSParserV alueList* valueList) 150 inline MediaQueryExp::MediaQueryExp(const AtomicString& mediaFeature, CSSParserV alueList* valueList)
151 : m_mediaFeature(mediaFeature) 151 : m_mediaFeature(mediaFeature)
152 , m_value(0)
153 , m_isValid(false) 152 , m_isValid(false)
154 { 153 {
155 // Initialize media query expression that must have 1 or more values. 154 // Initialize media query expression that must have 1 or more values.
156 if (valueList) { 155 if (valueList) {
157 if (valueList->size() == 1) { 156 if (valueList->size() == 1) {
158 CSSParserValue* value = valueList->current(); 157 CSSParserValue* value = valueList->current();
159 158
160 // Media features that use CSSValueIDs. 159 // Media features that use CSSValueIDs.
161 if (featureWithCSSValueID(mediaFeature, value)) 160 if (featureWithCSSValueID(mediaFeature, value))
162 m_value = CSSPrimitiveValue::createIdentifier(value->id); 161 m_value = CSSPrimitiveValue::createIdentifier(value->id);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 243
245 void MediaQueryExp::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 244 void MediaQueryExp::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
246 { 245 {
247 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); 246 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
248 info.addMember(m_mediaFeature, "mediaFeature"); 247 info.addMember(m_mediaFeature, "mediaFeature");
249 info.addMember(m_serializationCache, "serializationCache"); 248 info.addMember(m_serializationCache, "serializationCache");
250 info.addMember(m_value, "value"); 249 info.addMember(m_value, "value");
251 } 250 }
252 251
253 } // namespace 252 } // namespace
OLDNEW
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/Pair.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698