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

Unified Diff: Source/core/frame/UseCounter.cpp

Issue 466353002: Added a console warning when <picture><source src></picture> is used. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added usecounter the right way Created 6 years, 4 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 | « Source/core/frame/UseCounter.h ('k') | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/UseCounter.cpp
diff --git a/Source/core/frame/UseCounter.cpp b/Source/core/frame/UseCounter.cpp
index 764140188a025fbf33ea623d50f39638dd01b2cc..40be00b421d5bdd55bf89c843eae686907f72d09 100644
--- a/Source/core/frame/UseCounter.cpp
+++ b/Source/core/frame/UseCounter.cpp
@@ -785,6 +785,9 @@ String UseCounter::deprecationMessage(Feature feature)
case HTMLTableElementHspace:
return "The 'hspace' attribute on table is deprecated. Please use CSS instead.";
+ case PictureSourceSrc:
+ return "<source src> with a <picture> parent is invalid and therefore ignored. Please use <source srcset> instead.";
+
// Features that aren't deprecated don't have a deprecation message.
default:
return String();
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698