diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/css/MediaQueryExp.h')
-rw-r--r-- | src/3rdparty/webkit/WebCore/css/MediaQueryExp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/webkit/WebCore/css/MediaQueryExp.h b/src/3rdparty/webkit/WebCore/css/MediaQueryExp.h index 3036d04736..5ff4af33f3 100644 --- a/src/3rdparty/webkit/WebCore/css/MediaQueryExp.h +++ b/src/3rdparty/webkit/WebCore/css/MediaQueryExp.h @@ -36,8 +36,7 @@ namespace WebCore { class CSSParserValueList; -class MediaQueryExp -{ +class MediaQueryExp { public: MediaQueryExp(const AtomicString& mediaFeature, CSSParserValueList* values); ~MediaQueryExp(); @@ -46,7 +45,8 @@ public: CSSValue* value() const { return m_value.get(); } - bool operator==(const MediaQueryExp& other) const { + bool operator==(const MediaQueryExp& other) const + { return (other.m_mediaFeature == m_mediaFeature) && ((!other.m_value && !m_value) || (other.m_value && m_value && other.m_value->cssText() == m_value->cssText())); |