| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |