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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
690 | 690 |
691 case PrefixedVideoExitFullScreen: | 691 case PrefixedVideoExitFullScreen: |
692 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; | 692 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; |
693 | 693 |
694 case MediaErrorEncrypted: | 694 case MediaErrorEncrypted: |
695 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code is never used."; | 695 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code is never used."; |
696 | 696 |
697 case PrefixedGamepad: | 697 case PrefixedGamepad: |
698 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat or.getGamepads' instead."; | 698 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat or.getGamepads' instead."; |
699 | 699 |
700 case PrefixedIndexedDB: | |
701 return "'webkitIndexedDB' is deprecated. Please use the standard 'indexe dDB' instead."; | |
eseidel
2014/07/23 20:18:31
I'm suprised we don't have a helper fucntion for g
jsbell
2014/07/23 21:12:42
Good idea. I went with the generic "'%s' is deprec
| |
702 | |
703 case PrefixedIDBCursorConstructor: | |
704 return "'webkitIDBCursor' is deprecated. Please use the standard 'IDBCur sor' instead."; | |
705 | |
706 case PrefixedIDBDatabaseConstructor: | |
707 return "'webkitIDBDatabase' is deprecated. Please use the standard 'IDBD atabase' instead."; | |
708 | |
709 case PrefixedIDBFactoryConstructor: | |
710 return "'webkitIDBFactory' is deprecated. Please use the standard 'IDBFa ctory' instead."; | |
711 | |
712 case PrefixedIDBIndexConstructor: | |
713 return "'webkitIDBIndex' is deprecated. Please use the standard 'IDBInde x' instead."; | |
714 | |
715 case PrefixedIDBKeyRangeConstructor: | |
716 return "'webkitIDBKeyRange' is deprecated. Please use the standard 'IDBK eyRange' instead."; | |
717 | |
718 case PrefixedIDBObjectStoreConstructor: | |
719 return "'webkitIDBObjectStore' is deprecated. Please use the standard 'I DBObjectStore' instead."; | |
720 | |
721 case PrefixedIDBRequestConstructor: | |
722 return "'webkitIDBRequest' is deprecated. Please use the standard 'IDBRe quest' instead."; | |
723 | |
724 case PrefixedIDBTransactionConstructor: | |
725 return "'webkitIDBTransaction' is deprecated. Please use the standard 'I DBTransaction' instead."; | |
726 | |
700 case PrefixedRequestAnimationFrame: | 727 case PrefixedRequestAnimationFrame: |
701 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead."; | 728 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the standard 'requestAnimationFrame' instead."; |
702 | 729 |
703 case PrefixedCancelAnimationFrame: | 730 case PrefixedCancelAnimationFrame: |
704 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead."; | 731 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead."; |
705 | 732 |
706 case PrefixedCancelRequestAnimationFrame: | 733 case PrefixedCancelRequestAnimationFrame: |
707 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead."; | 734 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u se the standard 'cancelAnimationFrame' instead."; |
708 | 735 |
709 case DocumentCreateAttributeNS: | 736 case DocumentCreateAttributeNS: |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
790 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 817 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
791 { | 818 { |
792 // FIXME: We may want to handle stylesheets that have multiple owners | 819 // FIXME: We may want to handle stylesheets that have multiple owners |
793 // http://crbug.com/242125 | 820 // http://crbug.com/242125 |
794 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 821 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
795 return getFrom(sheetContents->singleOwnerDocument()); | 822 return getFrom(sheetContents->singleOwnerDocument()); |
796 return 0; | 823 return 0; |
797 } | 824 } |
798 | 825 |
799 } // namespace blink | 826 } // namespace blink |
OLD | NEW |