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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 | 823 |
824 case ConsoleTimelineEnd: | 824 case ConsoleTimelineEnd: |
825 return replacedBy("console.timelineEnd", "console.timeEnd"); | 825 return replacedBy("console.timelineEnd", "console.timeEnd"); |
826 | 826 |
827 case CanvasRenderingContext2DCompositeOperationDarker: | 827 case CanvasRenderingContext2DCompositeOperationDarker: |
828 return replacedBy("darker", "darken"); | 828 return replacedBy("darker", "darken"); |
829 | 829 |
830 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: | 830 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: |
831 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 http://xhr.spec.whatwg.org/."; | 831 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 http://xhr.spec.whatwg.org/."; |
832 | 832 |
833 case DOMImplementationHasFeatureReturnFalse: | |
834 return "'DOMImplementation.hasFeature()' returning false is deprecated.
Please do not use it, as per DOM it should always return true (https://dom.spec.
whatwg.org/#dom-domimplementation-hasfeature)."; | |
835 | |
836 case GetMatchedCSSRules: | 833 case GetMatchedCSSRules: |
837 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; | 834 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; |
838 | 835 |
839 case DocumentSetCharset: | 836 case DocumentSetCharset: |
840 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; | 837 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; |
841 | 838 |
842 case PrefixedImageSmoothingEnabled: | 839 case PrefixedImageSmoothingEnabled: |
843 return replacedBy("CanvasRenderingContext2D.webkitImageSmoothingEnabled"
, "CanvasRenderingContext2D.imageSmoothingEnabled"); | 840 return replacedBy("CanvasRenderingContext2D.webkitImageSmoothingEnabled"
, "CanvasRenderingContext2D.imageSmoothingEnabled"); |
844 | 841 |
845 case AudioListenerDopplerFactor: | 842 case AudioListenerDopplerFactor: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 936 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
940 { | 937 { |
941 // FIXME: We may want to handle stylesheets that have multiple owners | 938 // FIXME: We may want to handle stylesheets that have multiple owners |
942 // http://crbug.com/242125 | 939 // http://crbug.com/242125 |
943 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 940 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
944 return getFrom(sheetContents->singleOwnerDocument()); | 941 return getFrom(sheetContents->singleOwnerDocument()); |
945 return 0; | 942 return 0; |
946 } | 943 } |
947 | 944 |
948 } // namespace blink | 945 } // namespace blink |
OLD | NEW |