diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/css/MediaQueryEvaluator.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/css/MediaQueryEvaluator.h')
-rw-r--r-- | WebCore/css/MediaQueryEvaluator.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/WebCore/css/MediaQueryEvaluator.h b/WebCore/css/MediaQueryEvaluator.h index 5f4ab50..5ae8fec 100644 --- a/WebCore/css/MediaQueryEvaluator.h +++ b/WebCore/css/MediaQueryEvaluator.h @@ -31,7 +31,8 @@ #include "PlatformString.h" namespace WebCore { -class Page; +class CSSStyleSelector; +class Frame; class RenderStyle; class MediaList; class MediaQueryExp; @@ -66,7 +67,7 @@ public: /** Creates evaluator which evaluates full media queries */ - MediaQueryEvaluator(const String& acceptedMediaType, Page* page, RenderStyle* style); + MediaQueryEvaluator(const String& acceptedMediaType, Frame*, RenderStyle*); ~MediaQueryEvaluator(); @@ -74,14 +75,14 @@ public: bool mediaTypeMatchSpecific(const char* mediaTypeToMatch) const; /** Evaluates a list of media queries */ - bool eval(const MediaList* query) const; + bool eval(const MediaList*, CSSStyleSelector* = 0) const; /** Evaluates media query subexpression, ie "and (media-feature: value)" part */ - bool eval(const MediaQueryExp* expr) const; + bool eval(const MediaQueryExp*) const; private: String m_mediaType; - Page* m_page; // not owned + Frame* m_frame; // not owned RenderStyle* m_style; // not owned bool m_expResult; }; |