OLD | NEW |
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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 | 787 |
788 case ConsoleTimeline: | 788 case ConsoleTimeline: |
789 return "console.timeline is deprecated. Please use the console.time inst
ead."; | 789 return "console.timeline is deprecated. Please use the console.time inst
ead."; |
790 | 790 |
791 case ConsoleTimelineEnd: | 791 case ConsoleTimelineEnd: |
792 return "console.timelineEnd is deprecated. Please use the console.timeEn
d instead."; | 792 return "console.timelineEnd is deprecated. Please use the console.timeEn
d instead."; |
793 | 793 |
794 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: | 794 case XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: |
795 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/."; | 795 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/."; |
796 | 796 |
797 case FontFaceSetReady: | |
798 return "document.fonts.ready() method is going to be replaced with docum
ent.fonts.ready attribute in future releases. Please be prepared. For more help,
check https://code.google.com/p/chromium/issues/detail?id=392077#c3 ."; | |
799 | |
800 case DOMImplementationHasFeatureReturnFalse: | 797 case DOMImplementationHasFeatureReturnFalse: |
801 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)."; | 798 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)."; |
802 | 799 |
803 case GetMatchedCSSRules: | 800 case GetMatchedCSSRules: |
804 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; | 801 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; |
805 | 802 |
806 case DocumentSetCharset: | 803 case DocumentSetCharset: |
807 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; | 804 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; |
808 | 805 |
809 case PrefixedImageSmoothingEnabled: | 806 case PrefixedImageSmoothingEnabled: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 874 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
878 { | 875 { |
879 // FIXME: We may want to handle stylesheets that have multiple owners | 876 // FIXME: We may want to handle stylesheets that have multiple owners |
880 // http://crbug.com/242125 | 877 // http://crbug.com/242125 |
881 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 878 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
882 return getFrom(sheetContents->singleOwnerDocument()); | 879 return getFrom(sheetContents->singleOwnerDocument()); |
883 return 0; | 880 return 0; |
884 } | 881 } |
885 | 882 |
886 } // namespace blink | 883 } // namespace blink |
OLD | NEW |