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

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

Issue 2689063002: Deprecate CSS values zoom:reset and zoom:document. (Closed)
Patch Set: merge Created 3 years, 10 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/CSSParserContext.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
index 2ac03217889a6c9edbc54448c0a917224df6d00a..e9a9d2518e065b878358c8589f98b54f75834cf7 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp
@@ -6,6 +6,7 @@
#include "core/css/CSSStyleSheet.h"
#include "core/css/StyleSheetContents.h"
+#include "core/frame/Deprecation.h"
#include "core/frame/FrameHost.h"
#include "core/frame/Settings.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
@@ -145,6 +146,11 @@ void CSSParserContext::count(UseCounter::Feature feature) const {
UseCounter::count(*m_document, feature);
}
+void CSSParserContext::countDeprecation(UseCounter::Feature feature) const {
+ if (isUseCounterRecordingEnabled())
+ Deprecation::countDeprecation(*m_document, feature);
+}
+
void CSSParserContext::count(CSSParserMode mode, CSSPropertyID property) const {
if (isUseCounterRecordingEnabled() && m_document->frameHost()) {
UseCounter* useCounter = &m_document->frameHost()->useCounter();

Powered by Google App Engine
This is Rietveld 408576698