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

Unified Diff: sky/engine/core/css/parser/BisonCSSParser.h

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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: sky/engine/core/css/parser/BisonCSSParser.h
diff --git a/sky/engine/core/css/parser/BisonCSSParser.h b/sky/engine/core/css/parser/BisonCSSParser.h
index 5c0d130d6513645aebc5acdddb1a8e9fa6c673b3..acc1cad4fc9e90ecfdc2ad49a6e8d803d8abc45d 100644
--- a/sky/engine/core/css/parser/BisonCSSParser.h
+++ b/sky/engine/core/css/parser/BisonCSSParser.h
@@ -213,38 +213,9 @@ public:
void tokenToLowerCase(CSSParserString& token);
- void markViewportRuleBodyStart() { m_inViewport = true; }
- void markViewportRuleBodyEnd() { m_inViewport = false; }
- StyleRuleBase* createViewportRule();
-
CSSParserLocation currentLocation() { return m_tokenizer.currentLocation(); }
private:
- class StyleDeclarationScope {
- STACK_ALLOCATED();
- WTF_MAKE_NONCOPYABLE(StyleDeclarationScope);
- public:
- StyleDeclarationScope(BisonCSSParser* parser, const StylePropertySet* declaration)
- : m_parser(parser)
- , m_mode(declaration->cssParserMode())
- {
- if (isCSSViewportParsingEnabledForMode(m_mode)) {
- ASSERT(!m_parser->inViewport());
- m_parser->markViewportRuleBodyStart();
- }
- }
-
- ~StyleDeclarationScope()
- {
- if (isCSSViewportParsingEnabledForMode(m_mode))
- m_parser->markViewportRuleBodyEnd();
- }
-
- private:
- BisonCSSParser* m_parser;
- CSSParserMode m_mode;
- };
-
inline void ensureLineEndings();
void setStyleSheet(StyleSheetContents* styleSheet) { m_styleSheet = styleSheet; }

Powered by Google App Engine
This is Rietveld 408576698