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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.h

Issue 1913833002: Current work-in-progress crbug.com/567021 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More assert fixes Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGlobalRuleSet.cpp ('k') | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698