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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp

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/parser/CSSParserImpl.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
index 06425ebed5548a9bff6f227129aa1601dbca009c..a310f211ba281e593ee56750b6d7c830431d63f9 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -554,6 +554,9 @@ StyleRuleViewport* CSSParserImpl::consumeViewportRule(CSSParserTokenRange prelud
m_observerWrapper->observer().endRuleBody(endOffset);
}
+ if (m_styleSheet)
+ m_styleSheet->setHasViewportRule();
+
consumeDeclarationList(block, StyleRule::Viewport);
return StyleRuleViewport::create(createStylePropertySet(m_parsedProperties, CSSViewportRuleMode));
}
@@ -573,7 +576,7 @@ StyleRuleFontFace* CSSParserImpl::consumeFontFaceRule(CSSParserTokenRange prelud
}
if (m_styleSheet)
- m_styleSheet->setHasFontFaceRule(true);
+ m_styleSheet->setHasFontFaceRule();
consumeDeclarationList(block, StyleRule::FontFace);
return StyleRuleFontFace::create(createStylePropertySet(m_parsedProperties, m_context.mode()));

Powered by Google App Engine
This is Rietveld 408576698