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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 | 856 |
857 case PrefixedCancelRequestAnimationFrame: | 857 case PrefixedCancelRequestAnimationFrame: |
858 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; | 858 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; |
859 | 859 |
860 case SyncXHRWithCredentials: | 860 case SyncXHRWithCredentials: |
861 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request
s is deprecated."; | 861 return "Setting 'XMLHttpRequest.withCredentials' for synchronous request
s is deprecated."; |
862 | 862 |
863 case PictureSourceSrc: | 863 case PictureSourceSrc: |
864 return "<source src> with a <picture> parent is invalid and therefore ig
nored. Please use <source srcset> instead."; | 864 return "<source src> with a <picture> parent is invalid and therefore ig
nored. Please use <source srcset> instead."; |
865 | 865 |
866 case XHRProgressEventPosition: | |
867 return replacedWillBeRemoved("The XMLHttpRequest progress event property
'position'", "'loaded'", 50, "5044837464145920"); | |
868 | |
869 case XHRProgressEventTotalSize: | |
870 return replacedWillBeRemoved("The XMLHttpRequest progress event property
'totalSize'", "'total'", 50, "5044837464145920"); | |
871 | |
872 case ConsoleTimeline: | 866 case ConsoleTimeline: |
873 return replacedBy("'console.timeline'", "'console.time'"); | 867 return replacedBy("'console.timeline'", "'console.time'"); |
874 | 868 |
875 case ConsoleTimelineEnd: | 869 case ConsoleTimelineEnd: |
876 return replacedBy("'console.timelineEnd'", "'console.timeEnd'"); | 870 return replacedBy("'console.timelineEnd'", "'console.timeEnd'"); |
877 | 871 |
878 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: | 872 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: |
879 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/."; | 873 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/."; |
880 | 874 |
881 case GetMatchedCSSRules: | 875 case GetMatchedCSSRules: |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1034 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
1041 { | 1035 { |
1042 // FIXME: We may want to handle stylesheets that have multiple owners | 1036 // FIXME: We may want to handle stylesheets that have multiple owners |
1043 // https://crbug.com/242125 | 1037 // https://crbug.com/242125 |
1044 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1038 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
1045 return getFrom(sheetContents->singleOwnerDocument()); | 1039 return getFrom(sheetContents->singleOwnerDocument()); |
1046 return 0; | 1040 return 0; |
1047 } | 1041 } |
1048 | 1042 |
1049 } // namespace blink | 1043 } // namespace blink |
OLD | NEW |