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."; | |
kinuko
2015/02/16 09:47:18
nit: I'd use single quote for Clients.getAll() too
falken
2015/02/18 06:58:37
I don't think the Blink error message should menti
| |
862 | |
860 // Features that aren't deprecated don't have a deprecation message. | 863 // Features that aren't deprecated don't have a deprecation message. |
861 default: | 864 default: |
862 return String(); | 865 return String(); |
863 } | 866 } |
864 } | 867 } |
865 | 868 |
866 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 869 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
867 { | 870 { |
868 ASSERT(feature >= firstCSSProperty); | 871 ASSERT(feature >= firstCSSProperty); |
869 ASSERT(feature <= lastCSSProperty); | 872 ASSERT(feature <= lastCSSProperty); |
(...skipping 27 matching lines...) Expand all Loading... | |
897 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 900 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
898 { | 901 { |
899 // FIXME: We may want to handle stylesheets that have multiple owners | 902 // FIXME: We may want to handle stylesheets that have multiple owners |
900 // http://crbug.com/242125 | 903 // http://crbug.com/242125 |
901 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 904 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
902 return getFrom(sheetContents->singleOwnerDocument()); | 905 return getFrom(sheetContents->singleOwnerDocument()); |
903 return 0; | 906 return 0; |
904 } | 907 } |
905 | 908 |
906 } // namespace blink | 909 } // namespace blink |
OLD | NEW |