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

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

Issue 901623002: Deprecate SVGSVGElement.forceRedraw, suspendRedraw, unsuspendRedraw[All] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright (C) 2012 Google, Inc. All rights reserved. 3 * Copyright (C) 2012 Google, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 case PrefixedMediaGenerateKeyRequest: 834 case PrefixedMediaGenerateKeyRequest:
835 case PrefixedMediaCancelKeyRequest: 835 case PrefixedMediaCancelKeyRequest:
836 return "The prefixed Encrypted Media Extensions APIs are deprecated and will be removed soon. Please use 'navigator.requestMediaKeySystemAccess()' inste ad."; 836 return "The prefixed Encrypted Media Extensions APIs are deprecated and will be removed soon. Please use 'navigator.requestMediaKeySystemAccess()' inste ad.";
837 837
838 case CanPlayTypeKeySystem: 838 case CanPlayTypeKeySystem:
839 return "canPlayType()'s 'keySystem' parameter is deprecated and will be removed soon. Please use 'navigator.requestMediaKeySystemAccess()' instead."; 839 return "canPlayType()'s 'keySystem' parameter is deprecated and will be removed soon. Please use 'navigator.requestMediaKeySystemAccess()' instead.";
840 840
841 case AudioBufferSourceBufferOnce: 841 case AudioBufferSourceBufferOnce:
842 return "Setting AudioBufferSourceNode.buffer more than once is deprecate d and will no longer work in Chrome 43."; 842 return "Setting AudioBufferSourceNode.buffer more than once is deprecate d and will no longer work in Chrome 43.";
843 843
844 case SVGSVGElementForceRedraw:
845 return "'SVGSVGElement.forceRedraw' is deprecated, please do not use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg__SVG SVGElement__forceRedraw).";
philipj_slow 2015/02/04 15:45:24 Append () to the function names to match other mes
Erik Dahlström (inactive) 2015/02/05 08:43:00 Done.
846
847 case SVGSVGElementSuspendRedraw:
848 return "'SVGSVGElement.suspendRedraw' 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__suspendRedraw).";
849
850 case SVGSVGElementUnsuspendRedraw:
851 return "'SVGSVGElement.unsuspendRedraw' is deprecated, please do not use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg_ _SVGSVGElement__unsuspendRedraw).";
852
853 case SVGSVGElementUnsuspendRedrawAll:
854 return "'SVGSVGElement.unsuspendRedrawAll' is deprecated, please do not use it. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__s vg__SVGSVGElement__unsuspendRedrawAll).";
855
844 // Features that aren't deprecated don't have a deprecation message. 856 // Features that aren't deprecated don't have a deprecation message.
845 default: 857 default:
846 return String(); 858 return String();
847 } 859 }
848 } 860 }
849 861
850 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 862 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
851 { 863 {
852 ASSERT(feature >= firstCSSProperty); 864 ASSERT(feature >= firstCSSProperty);
853 ASSERT(feature <= lastCSSProperty); 865 ASSERT(feature <= lastCSSProperty);
(...skipping 28 matching lines...) Expand all
882 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 894 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
883 { 895 {
884 // FIXME: We may want to handle stylesheets that have multiple owners 896 // FIXME: We may want to handle stylesheets that have multiple owners
885 // http://crbug.com/242125 897 // http://crbug.com/242125
886 if (sheetContents && sheetContents->hasSingleOwnerNode()) 898 if (sheetContents && sheetContents->hasSingleOwnerNode())
887 return getFrom(sheetContents->singleOwnerDocument()); 899 return getFrom(sheetContents->singleOwnerDocument());
888 return 0; 900 return 0;
889 } 901 }
890 902
891 } // namespace blink 903 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698