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

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.cpp

Issue 1516553002: Remove deprecation messages for no-ops that are left in the specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update tests Created 5 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 802
803 case PrefixedRequestAnimationFrame: 803 case PrefixedRequestAnimationFrame:
804 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead."; 804 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead.";
805 805
806 case PrefixedCancelAnimationFrame: 806 case PrefixedCancelAnimationFrame:
807 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead."; 807 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead.";
808 808
809 case PrefixedCancelRequestAnimationFrame: 809 case PrefixedCancelRequestAnimationFrame:
810 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead."; 810 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead.";
811 811
812 case NodeIteratorDetach:
813 return "'NodeIterator.detach' is now a no-op, as per DOM (https://dom.sp ec.whatwg.org/#dom-nodeiterator-detach).";
814
815 case RangeDetach:
816 return "'Range.detach' is now a no-op, as per DOM (https://dom.spec.what wg.org/#dom-range-detach).";
817
818 case SyncXHRWithCredentials: 812 case SyncXHRWithCredentials:
819 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated."; 813 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated.";
820 814
821 case PictureSourceSrc: 815 case PictureSourceSrc:
822 return "<source src> with a <picture> parent is invalid and therefore ig nored. Please use <source srcset> instead."; 816 return "<source src> with a <picture> parent is invalid and therefore ig nored. Please use <source srcset> instead.";
823 817
824 case XHRProgressEventPosition: 818 case XHRProgressEventPosition:
825 return "The XMLHttpRequest progress event property 'position' is depreca ted. Please use 'loaded' instead."; 819 return "The XMLHttpRequest progress event property 'position' is depreca ted. Please use 'loaded' instead.";
826 820
827 case XHRProgressEventTotalSize: 821 case XHRProgressEventTotalSize:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 return replacedBy("Range.expand()", "Selection.modify()"); 858 return replacedBy("Range.expand()", "Selection.modify()");
865 859
866 case PrefixedMediaAddKey: 860 case PrefixedMediaAddKey:
867 case PrefixedMediaGenerateKeyRequest: 861 case PrefixedMediaGenerateKeyRequest:
868 case PrefixedMediaCancelKeyRequest: 862 case PrefixedMediaCancelKeyRequest:
869 return "The prefixed Encrypted Media Extensions APIs are deprecated. Ple ase use 'navigator.requestMediaKeySystemAccess()' instead."; 863 return "The prefixed Encrypted Media Extensions APIs are deprecated. Ple ase use 'navigator.requestMediaKeySystemAccess()' instead.";
870 864
871 case CanPlayTypeKeySystem: 865 case CanPlayTypeKeySystem:
872 return "canPlayType()'s 'keySystem' parameter is deprecated. Please use 'navigator.requestMediaKeySystemAccess()' instead."; 866 return "canPlayType()'s 'keySystem' parameter is deprecated. Please use 'navigator.requestMediaKeySystemAccess()' instead.";
873 867
874 case SVGSVGElementForceRedraw:
875 return "'SVGSVGElement.forceRedraw()' is deprecated, please do not use i t. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg__S VGSVGElement__forceRedraw).";
876
877 case SVGSVGElementSuspendRedraw:
878 return "'SVGSVGElement.suspendRedraw()' is deprecated, please do not use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg_ _SVGSVGElement__suspendRedraw).";
879
880 case SVGSVGElementUnsuspendRedraw:
881 return "'SVGSVGElement.unsuspendRedraw()' is deprecated, please do not u se it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__sv g__SVGSVGElement__unsuspendRedraw).";
882
883 case SVGSVGElementUnsuspendRedrawAll:
884 return "'SVGSVGElement.unsuspendRedrawAll()' is deprecated, please do no t use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#_ _svg__SVGSVGElement__unsuspendRedrawAll).";
885
886 // Powerful features on insecure origins (https://goo.gl/rStTGz) 868 // Powerful features on insecure origins (https://goo.gl/rStTGz)
887 case DeviceMotionInsecureOrigin: 869 case DeviceMotionInsecureOrigin:
888 return "The devicemotion event is deprecated on insecure origins, and su pport will be removed in the future. You should consider switching your applicat ion to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail s."; 870 return "The devicemotion event is deprecated on insecure origins, and su pport will be removed in the future. You should consider switching your applicat ion to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail s.";
889 871
890 case DeviceOrientationInsecureOrigin: 872 case DeviceOrientationInsecureOrigin:
891 return "The deviceorientation event is deprecated on insecure origins, a nd support will be removed in the future. You should consider switching your app lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d etails."; 873 return "The deviceorientation event is deprecated on insecure origins, a nd support will be removed in the future. You should consider switching your app lication to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more d etails.";
892 874
893 case DeviceOrientationAbsoluteInsecureOrigin: 875 case DeviceOrientationAbsoluteInsecureOrigin:
894 return "The deviceorientationabsolute event is deprecated on insecure or igins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz fo r more details."; 876 return "The deviceorientationabsolute event is deprecated on insecure or igins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz fo r more details.";
895 877
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 976 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
995 { 977 {
996 // FIXME: We may want to handle stylesheets that have multiple owners 978 // FIXME: We may want to handle stylesheets that have multiple owners
997 // https://crbug.com/242125 979 // https://crbug.com/242125
998 if (sheetContents && sheetContents->hasSingleOwnerNode()) 980 if (sheetContents && sheetContents->hasSingleOwnerNode())
999 return getFrom(sheetContents->singleOwnerDocument()); 981 return getFrom(sheetContents->singleOwnerDocument());
1000 return 0; 982 return 0;
1001 } 983 }
1002 984
1003 } // namespace blink 985 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Range.idl ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698