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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 } | 612 } |
613 | 613 |
614 String UseCounter::deprecationMessage(Feature feature) | 614 String UseCounter::deprecationMessage(Feature feature) |
615 { | 615 { |
616 switch (feature) { | 616 switch (feature) { |
617 // Content Security Policy | 617 // Content Security Policy |
618 case PrefixedContentSecurityPolicy: | 618 case PrefixedContentSecurityPolicy: |
619 case PrefixedContentSecurityPolicyReportOnly: | 619 case PrefixedContentSecurityPolicyReportOnly: |
620 return "The 'X-WebKit-CSP' headers are no longer supported. Please consi
der using the canonical 'Content-Security-Policy' header instead."; | 620 return "The 'X-WebKit-CSP' headers are no longer supported. Please consi
der using the canonical 'Content-Security-Policy' header instead."; |
621 | 621 |
622 // HTMLMediaElement | |
623 case PrefixedMediaGenerateKeyRequest: | |
624 return "'HTMLMediaElement.webkitGenerateKeyRequest()' is deprecated. Ple
ase use 'MediaKeys.createSession()' instead."; | |
625 | |
626 // Quota | 622 // Quota |
627 case StorageInfo: | 623 case StorageInfo: |
628 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator.
webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead."; | 624 return "'window.webkitStorageInfo' is deprecated. Please use 'navigator.
webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead."; |
629 | 625 |
630 // Performance | 626 // Performance |
631 case PrefixedPerformanceTimeline: | 627 case PrefixedPerformanceTimeline: |
632 return "'window.performance.webkitGet*' methods have been deprecated. Pl
ease use the unprefixed 'performance.get*' methods instead."; | 628 return "'window.performance.webkitGet*' methods have been deprecated. Pl
ease use the unprefixed 'performance.get*' methods instead."; |
633 case PrefixedUserTiming: | 629 case PrefixedUserTiming: |
634 return "'window.performance.webkit*' methods have been deprecated. Pleas
e use the unprefixed 'window.performance.*' methods instead."; | 630 return "'window.performance.webkit*' methods have been deprecated. Pleas
e use the unprefixed 'window.performance.*' methods instead."; |
635 | 631 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 724 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
729 { | 725 { |
730 // FIXME: We may want to handle stylesheets that have multiple owners | 726 // FIXME: We may want to handle stylesheets that have multiple owners |
731 // http://crbug.com/242125 | 727 // http://crbug.com/242125 |
732 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 728 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
733 return getFrom(sheetContents->singleOwnerDocument()); | 729 return getFrom(sheetContents->singleOwnerDocument()); |
734 return 0; | 730 return 0; |
735 } | 731 } |
736 | 732 |
737 } // namespace WebCore | 733 } // namespace WebCore |
OLD | NEW |