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

Side by Side Diff: sky/engine/core/css/MediaQueryExp.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/MediaQuery.h ('k') | sky/engine/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 * 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (isID) 69 if (isID)
70 return (id == expValue.id); 70 return (id == expValue.id);
71 if (isValue) 71 if (isValue)
72 return (value == expValue.value); 72 return (value == expValue.value);
73 if (isRatio) 73 if (isRatio)
74 return (numerator == expValue.numerator && denominator == expValue.d enominator); 74 return (numerator == expValue.numerator && denominator == expValue.d enominator);
75 return !expValue.isValid(); 75 return !expValue.isValid();
76 } 76 }
77 }; 77 };
78 78
79 class MediaQueryExp : public DummyBase<MediaQueryExp> { 79 class MediaQueryExp {
80 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 80 WTF_MAKE_FAST_ALLOCATED;
81 public: 81 public:
82 static PassOwnPtr<MediaQueryExp> createIfValid(const String& mediaFeature, C SSParserValueList*); 82 static PassOwnPtr<MediaQueryExp> createIfValid(const String& mediaFeature, C SSParserValueList*);
83 ~MediaQueryExp(); 83 ~MediaQueryExp();
84 84
85 const String& mediaFeature() const { return m_mediaFeature; } 85 const String& mediaFeature() const { return m_mediaFeature; }
86 86
87 MediaQueryExpValue expValue() const { return m_expValue; } 87 MediaQueryExpValue expValue() const { return m_expValue; }
88 88
89 bool operator==(const MediaQueryExp& other) const; 89 bool operator==(const MediaQueryExp& other) const;
90 90
(...skipping 10 matching lines...) Expand all
101 private: 101 private:
102 MediaQueryExp(const String&, const MediaQueryExpValue&); 102 MediaQueryExp(const String&, const MediaQueryExpValue&);
103 103
104 String m_mediaFeature; 104 String m_mediaFeature;
105 MediaQueryExpValue m_expValue; 105 MediaQueryExpValue m_expValue;
106 }; 106 };
107 107
108 } // namespace 108 } // namespace
109 109
110 #endif 110 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/css/MediaQuery.h ('k') | sky/engine/core/css/MediaQueryList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698