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

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

Issue 1526003002: Update the XMLHttpRequestProgressEvent deprecation messages for M50 removal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use replacedWillBeRemoved Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google, Inc. All rights reserved. 2 * Copyright (C) 2012 Google, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 case PrefixedCancelRequestAnimationFrame: 830 case PrefixedCancelRequestAnimationFrame:
831 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead."; 831 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead.";
832 832
833 case SyncXHRWithCredentials: 833 case SyncXHRWithCredentials:
834 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated."; 834 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request s is deprecated.";
835 835
836 case PictureSourceSrc: 836 case PictureSourceSrc:
837 return "<source src> with a <picture> parent is invalid and therefore ig nored. Please use <source srcset> instead."; 837 return "<source src> with a <picture> parent is invalid and therefore ig nored. Please use <source srcset> instead.";
838 838
839 case XHRProgressEventPosition: 839 case XHRProgressEventPosition:
840 return replacedBy("The XMLHttpRequest progress event property 'position' ", "'loaded'"); 840 return replacedWillBeRemoved("The XMLHttpRequest progress event property 'position'", "'loaded'", 50, "5044837464145920");
841 841
842 case XHRProgressEventTotalSize: 842 case XHRProgressEventTotalSize:
843 return replacedBy("The XMLHttpRequest progress event property 'totalSize '", "'total'"); 843 return replacedWillBeRemoved("The XMLHttpRequest progress event property 'totalSize'", "'total'", 50, "5044837464145920");
844 844
845 case ConsoleTimeline: 845 case ConsoleTimeline:
846 return replacedBy("'console.timeline'", "'console.time'"); 846 return replacedBy("'console.timeline'", "'console.time'");
847 847
848 case ConsoleTimelineEnd: 848 case ConsoleTimelineEnd:
849 return replacedBy("'console.timelineEnd'", "'console.timeEnd'"); 849 return replacedBy("'console.timelineEnd'", "'console.timeEnd'");
850 850
851 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: 851 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload:
852 return "Synchronous XMLHttpRequest on the main thread is deprecated beca use of its detrimental effects to the end user's experience. For more help, chec k https://xhr.spec.whatwg.org/."; 852 return "Synchronous XMLHttpRequest on the main thread is deprecated beca use of its detrimental effects to the end user's experience. For more help, chec k https://xhr.spec.whatwg.org/.";
853 853
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1000 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1001 { 1001 {
1002 // FIXME: We may want to handle stylesheets that have multiple owners 1002 // FIXME: We may want to handle stylesheets that have multiple owners
1003 // https://crbug.com/242125 1003 // https://crbug.com/242125
1004 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1004 if (sheetContents && sheetContents->hasSingleOwnerNode())
1005 return getFrom(sheetContents->singleOwnerDocument()); 1005 return getFrom(sheetContents->singleOwnerDocument());
1006 return 0; 1006 return 0;
1007 } 1007 }
1008 1008
1009 } // namespace blink 1009 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698