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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 | 666 |
667 case DOMImplementationCreateCSSStyleSheet: | 667 case DOMImplementationCreateCSSStyleSheet: |
668 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; | 668 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; |
669 | 669 |
670 case MediaErrorEncrypted: | 670 case MediaErrorEncrypted: |
671 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code
is never used."; | 671 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code
is never used."; |
672 | 672 |
673 case HTMLSourceElementMedia: | 673 case HTMLSourceElementMedia: |
674 return "'HTMLSourceElement.media' is deprecated. This attribute doesn't
do anything."; | 674 return "'HTMLSourceElement.media' is deprecated. This attribute doesn't
do anything."; |
675 | 675 |
676 case PrefixedGetImageDataHD: | |
677 return "'CanvasRenderingContext2D.webkitGetImageDataHD' is deprecated. P
lease use getImageData instead."; | |
678 | |
679 case PrefixedPutImageDataHD: | |
680 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P
lease use putImageData instead."; | |
681 | |
682 case ShadowRootApplyAuthorStyles: | 676 case ShadowRootApplyAuthorStyles: |
683 return "'ShadowRoot.applyAuthorStyles' is deprecated."; | 677 return "'ShadowRoot.applyAuthorStyles' is deprecated."; |
684 | 678 |
685 case PrefixedSpeechAttribute: | 679 case PrefixedSpeechAttribute: |
686 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas
e use the JavaScript API instead."; | 680 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas
e use the JavaScript API instead."; |
687 | 681 |
688 case PrefixedGamepad: | 682 case PrefixedGamepad: |
689 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; | 683 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; |
690 | 684 |
691 case PrefixedRequestAnimationFrame: | 685 case PrefixedRequestAnimationFrame: |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 732 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
739 { | 733 { |
740 // FIXME: We may want to handle stylesheets that have multiple owners | 734 // FIXME: We may want to handle stylesheets that have multiple owners |
741 // http://crbug.com/242125 | 735 // http://crbug.com/242125 |
742 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 736 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
743 return getFrom(sheetContents->singleOwnerDocument()); | 737 return getFrom(sheetContents->singleOwnerDocument()); |
744 return 0; | 738 return 0; |
745 } | 739 } |
746 | 740 |
747 } // namespace WebCore | 741 } // namespace WebCore |
OLD | NEW |