Chromium Code Reviews| 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 850 | 850 |
| 851 case SVGSVGElementSuspendRedraw: | 851 case SVGSVGElementSuspendRedraw: |
| 852 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)."; | 852 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)."; |
| 853 | 853 |
| 854 case SVGSVGElementUnsuspendRedraw: | 854 case SVGSVGElementUnsuspendRedraw: |
| 855 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)."; | 855 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)."; |
| 856 | 856 |
| 857 case SVGSVGElementUnsuspendRedrawAll: | 857 case SVGSVGElementUnsuspendRedrawAll: |
| 858 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)."; | 858 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)."; |
| 859 | 859 |
| 860 case ServiceWorkerClientsGetAll: | |
| 861 return "Clients.getAll() is deprecated and will no longer work in Chrome 43. Please use 'matchAll' instead"; | |
|
falken
2015/02/13 10:15:59
nit: Please add a period at the end of the sentenc
zhuoyu.qian
2015/02/13 10:47:05
Done.
| |
| 860 // Features that aren't deprecated don't have a deprecation message. | 862 // Features that aren't deprecated don't have a deprecation message. |
| 861 default: | 863 default: |
| 862 return String(); | 864 return String(); |
| 863 } | 865 } |
| 864 } | 866 } |
| 865 | 867 |
| 866 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 868 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 867 { | 869 { |
| 868 ASSERT(feature >= firstCSSProperty); | 870 ASSERT(feature >= firstCSSProperty); |
| 869 ASSERT(feature <= lastCSSProperty); | 871 ASSERT(feature <= lastCSSProperty); |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 897 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 899 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 898 { | 900 { |
| 899 // FIXME: We may want to handle stylesheets that have multiple owners | 901 // FIXME: We may want to handle stylesheets that have multiple owners |
| 900 // http://crbug.com/242125 | 902 // http://crbug.com/242125 |
| 901 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 903 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 902 return getFrom(sheetContents->singleOwnerDocument()); | 904 return getFrom(sheetContents->singleOwnerDocument()); |
| 903 return 0; | 905 return 0; |
| 904 } | 906 } |
| 905 | 907 |
| 906 } // namespace blink | 908 } // namespace blink |
| OLD | NEW |