OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |