| Index: third_party/WebKit/Source/core/css/CSSStyleSheet.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.h b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
|
| index 0d2a226c6189e280ea10d867a94116f12ef14c56..7fed67219759cd2bfd15b3cecf98c39d24a18340 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSStyleSheet.h
|
| +++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
|
| @@ -23,6 +23,7 @@
|
|
|
| #include "core/CoreExport.h"
|
| #include "core/css/CSSRule.h"
|
| +#include "core/css/MediaQueryEvaluator.h"
|
| #include "core/css/StyleSheet.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/Noncopyable.h"
|
| @@ -40,11 +41,6 @@ class MediaQuerySet;
|
| class SecurityOrigin;
|
| class StyleSheetContents;
|
|
|
| -enum StyleSheetUpdateType {
|
| - PartialRuleUpdate,
|
| - EntireStyleSheetUpdate
|
| -};
|
| -
|
| class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
|
| DEFINE_WRAPPERTYPEINFO();
|
| WTF_MAKE_NONCOPYABLE(CSSStyleSheet);
|
| @@ -89,6 +85,9 @@ public:
|
| Document* ownerDocument() const;
|
| MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
|
| void setMediaQueries(MediaQuerySet*);
|
| + bool matchesMediaQueries(const MediaQueryEvaluator&);
|
| + const MediaQueryResultList& viewportDependentMediaQueryResults() const { return m_viewportDependentMediaQueryResults; }
|
| + const MediaQueryResultList& deviceDependentMediaQueryResults() const { return m_deviceDependentMediaQueryResults; }
|
| void setTitle(const String& title) { m_title = title; }
|
| // Set by LinkStyle iff CORS-enabled fetch of stylesheet succeeded from this origin.
|
| void setAllowRuleAccessFromOrigin(PassRefPtr<SecurityOrigin> allowedOrigin);
|
| @@ -107,7 +106,7 @@ public:
|
|
|
| void willMutateRules();
|
| void didMutateRules();
|
| - void didMutate(StyleSheetUpdateType = PartialRuleUpdate);
|
| + void didMutate();
|
|
|
| StyleSheetContents* contents() const { return m_contents.get(); }
|
|
|
| @@ -139,6 +138,8 @@ private:
|
| bool m_isDisabled;
|
| String m_title;
|
| Member<MediaQuerySet> m_mediaQueries;
|
| + MediaQueryResultList m_viewportDependentMediaQueryResults;
|
| + MediaQueryResultList m_deviceDependentMediaQueryResults;
|
|
|
| RefPtr<SecurityOrigin> m_allowRuleAccessFromOrigin;
|
|
|
|
|