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

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

Issue 892053003: Rename ServiceWorkerClients.getAll to matchAll in M42 (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
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/serviceworkers/Clients.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/serviceworkers/Clients.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698