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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
846 | 846 |
847 case SVGSVGElementSuspendRedraw: | 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)."; | 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 | 849 |
850 case SVGSVGElementUnsuspendRedraw: | 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)."; | 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 | 852 |
853 case SVGSVGElementUnsuspendRedrawAll: | 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)."; | 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 | 855 |
856 case ServiceWorkerClientsGetAll: | |
857 return "Clients.getAll() is deprecated. Please use 'matchAll' instead"; | |
Kunihiko Sakamoto
2015/02/10 01:30:39
Nit: add a period at the end of sentence.
| |
856 // Features that aren't deprecated don't have a deprecation message. | 858 // Features that aren't deprecated don't have a deprecation message. |
857 default: | 859 default: |
858 return String(); | 860 return String(); |
859 } | 861 } |
860 } | 862 } |
861 | 863 |
862 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 864 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
863 { | 865 { |
864 ASSERT(feature >= firstCSSProperty); | 866 ASSERT(feature >= firstCSSProperty); |
865 ASSERT(feature <= lastCSSProperty); | 867 ASSERT(feature <= lastCSSProperty); |
(...skipping 27 matching lines...) Expand all Loading... | |
893 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 895 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
894 { | 896 { |
895 // FIXME: We may want to handle stylesheets that have multiple owners | 897 // FIXME: We may want to handle stylesheets that have multiple owners |
896 // http://crbug.com/242125 | 898 // http://crbug.com/242125 |
897 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 899 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
898 return getFrom(sheetContents->singleOwnerDocument()); | 900 return getFrom(sheetContents->singleOwnerDocument()); |
899 return 0; | 901 return 0; |
900 } | 902 } |
901 | 903 |
902 } // namespace blink | 904 } // namespace blink |
OLD | NEW |