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 93be952e3cdc4455f546b926a4ba3ca096cb73ed..3c21a71796bdc2f447775010ee495e972e0e5ac9 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp |
@@ -24,6 +24,7 @@ |
#include "core/css/parser/MediaQueryParser.h" |
#include "core/dom/Document.h" |
#include "core/dom/Element.h" |
+#include "core/frame/Deprecation.h" |
#include "core/frame/UseCounter.h" |
#include "platform/TraceEvent.h" |
#include "wtf/BitArray.h" |
@@ -719,8 +720,11 @@ void CSSParserImpl::consumeDeclaration(CSSParserTokenRange range, StyleRule::Typ |
if (important && (ruleType == StyleRule::FontFace || ruleType == StyleRule::Keyframe)) |
return; |
- if (unresolvedProperty != CSSPropertyInvalid) |
+ if (unresolvedProperty != CSSPropertyInvalid) { |
+ if (m_styleSheet && m_styleSheet->singleOwnerDocument()) |
+ Deprecation::warnOnDeprecatedProperties(m_styleSheet->singleOwnerDocument()->frame(), unresolvedProperty); |
consumeDeclarationValue(range.makeSubRange(&range.peek(), declarationValueEnd), unresolvedProperty, important, ruleType); |
+ } |
if (m_observerWrapper && (ruleType == StyleRule::Style || ruleType == StyleRule::Keyframe)) { |
m_observerWrapper->observer().observeProperty( |