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

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

Issue 1304623002: Make blink classes and structures in core/css fast-allocated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing (Fixed windows compile error) Created 5 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
« no previous file with comments | « Source/core/css/LocalFontFaceSource.h ('k') | Source/core/css/MediaValuesCached.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 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef MediaQueryExp_h 29 #ifndef MediaQueryExp_h
30 #define MediaQueryExp_h 30 #define MediaQueryExp_h
31 31
32 #include "core/CSSValueKeywords.h" 32 #include "core/CSSValueKeywords.h"
33 #include "core/CoreExport.h" 33 #include "core/CoreExport.h"
34 #include "core/MediaFeatureNames.h" 34 #include "core/MediaFeatureNames.h"
35 #include "core/css/CSSPrimitiveValue.h" 35 #include "core/css/CSSPrimitiveValue.h"
36 #include "core/css/CSSValue.h" 36 #include "core/css/CSSValue.h"
37 #include "wtf/Allocator.h"
37 #include "wtf/PassOwnPtr.h" 38 #include "wtf/PassOwnPtr.h"
38 #include "wtf/RefPtr.h" 39 #include "wtf/RefPtr.h"
39 40
40 namespace blink { 41 namespace blink {
41 42
42 class CSSParserToken; 43 class CSSParserToken;
43 44
44 struct MediaQueryExpValue { 45 struct MediaQueryExpValue {
46 DISALLOW_ALLOCATION();
45 CSSValueID id; 47 CSSValueID id;
46 double value; 48 double value;
47 CSSPrimitiveValue::UnitType unit; 49 CSSPrimitiveValue::UnitType unit;
48 unsigned numerator; 50 unsigned numerator;
49 unsigned denominator; 51 unsigned denominator;
50 52
51 bool isID; 53 bool isID;
52 bool isValue; 54 bool isValue;
53 bool isRatio; 55 bool isRatio;
54 56
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 private: 105 private:
104 MediaQueryExp(const String&, const MediaQueryExpValue&); 106 MediaQueryExp(const String&, const MediaQueryExpValue&);
105 107
106 String m_mediaFeature; 108 String m_mediaFeature;
107 MediaQueryExpValue m_expValue; 109 MediaQueryExpValue m_expValue;
108 }; 110 };
109 111
110 } // namespace 112 } // namespace
111 113
112 #endif 114 #endif
OLDNEW
« no previous file with comments | « Source/core/css/LocalFontFaceSource.h ('k') | Source/core/css/MediaValuesCached.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698