OLD | NEW |
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 Loading... |
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 i
t. It is a no-op, as per SVG2 (https://svgwg.org/svg2-draft/struct.html#__svg__S
VGSVGElement__forceRedraw)."; |
| 846 |
| 847 case SVGSVGElementSuspendRedraw: |
| 848 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)."; |
| 849 |
| 850 case SVGSVGElementUnsuspendRedraw: |
| 851 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)."; |
| 852 |
| 853 case SVGSVGElementUnsuspendRedrawAll: |
| 854 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)."; |
| 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 27 matching lines...) Expand all Loading... |
881 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 893 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
882 { | 894 { |
883 // FIXME: We may want to handle stylesheets that have multiple owners | 895 // FIXME: We may want to handle stylesheets that have multiple owners |
884 // http://crbug.com/242125 | 896 // http://crbug.com/242125 |
885 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 897 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
886 return getFrom(sheetContents->singleOwnerDocument()); | 898 return getFrom(sheetContents->singleOwnerDocument()); |
887 return 0; | 899 return 0; |
888 } | 900 } |
889 | 901 |
890 } // namespace blink | 902 } // namespace blink |
OLD | NEW |