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

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

Issue 2408353003: Add hasViewportRule() flag to StyleSheetContents. (Closed)
Patch Set: CORE_EXPORT Created 4 years, 2 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/StyleSheetContents.h
diff --git a/third_party/WebKit/Source/core/css/StyleSheetContents.h b/third_party/WebKit/Source/core/css/StyleSheetContents.h
index af8aad317e489eb079ee850efdd439f8f04e0e80..954dd098fa15e7ec84a2cc0dfdbe9d509e1c18cd 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetContents.h
+++ b/third_party/WebKit/Source/core/css/StyleSheetContents.h
@@ -101,6 +101,9 @@ class CORE_EXPORT StyleSheetContents
void findFontFaceRules(
HeapVector<Member<const StyleRuleFontFace>>& fontFaceRules);
+ void setHasViewportRule() { m_hasViewportRule = true; }
+ bool hasViewportRule() const { return m_hasViewportRule; }
+
void parserAddNamespace(const AtomicString& prefix, const AtomicString& uri);
void parserAppendRule(StyleRuleBase*);
@@ -201,6 +204,7 @@ class CORE_EXPORT StyleSheetContents
bool m_didLoadErrorOccur : 1;
bool m_isMutable : 1;
bool m_hasFontFaceRule : 1;
+ bool m_hasViewportRule : 1;
bool m_hasMediaQueries : 1;
bool m_hasSingleOwnerDocument : 1;
bool m_isUsedFromTextCache : 1;
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleRule.h ('k') | third_party/WebKit/Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698