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

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

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
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContentsTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 df4464540a3dbd3fe6230eaffad4432169308684..35169960f5125e7b8c323284e2333e19146694fb 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -614,6 +614,9 @@ StyleRuleViewport* CSSParserImpl::consumeViewportRule(
m_observerWrapper->observer().endRuleBody(endOffset);
}
+ if (m_styleSheet)
+ m_styleSheet->setHasViewportRule();
+
consumeDeclarationList(block, StyleRule::Viewport);
return StyleRuleViewport::create(
createStylePropertySet(m_parsedProperties, CSSViewportRuleMode));
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContentsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698