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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 | 648 |
649 case FileError: | 649 case FileError: |
650 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; | 650 return "FileError is deprecated. Please use the 'name' or 'message' attr
ibutes of DOMError rather than 'code'."; |
651 | 651 |
652 case ShowModalDialog: | 652 case ShowModalDialog: |
653 return "Chromium is considering deprecating showModalDialog. Please use
window.open and postMessage instead."; | 653 return "Chromium is considering deprecating showModalDialog. Please use
window.open and postMessage instead."; |
654 | 654 |
655 case CSSStyleSheetInsertRuleOptionalArg: | 655 case CSSStyleSheetInsertRuleOptionalArg: |
656 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; | 656 return "Calling CSSStyleSheet.insertRule() with one argument is deprecat
ed. Please pass the index argument as well: insertRule(x, 0)."; |
657 | 657 |
| 658 case PrefixedVideoSupportsFullscreen: |
| 659 return "'HTMLVideoElement.webkitSupportsFullscreen' is deprecated. Its v
alue is true if the video is loaded."; |
| 660 |
| 661 case PrefixedVideoDisplayingFullscreen: |
| 662 return "'HTMLVideoElement.webkitDisplayingFullscreen' is deprecated. Ple
ase use the 'fullscreenchange' and 'webkitfullscreenchange' events instead."; |
| 663 |
| 664 case PrefixedVideoEnterFullscreen: |
| 665 return "'HTMLVideoElement.webkitEnterFullscreen()' is deprecated. Please
use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste
ad."; |
| 666 |
| 667 case PrefixedVideoExitFullscreen: |
| 668 return "'HTMLVideoElement.webkitExitFullscreen()' is deprecated. Please
use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; |
| 669 |
| 670 case PrefixedVideoEnterFullScreen: |
| 671 return "'HTMLVideoElement.webkitEnterFullScreen()' is deprecated. Please
use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste
ad."; |
| 672 |
| 673 case PrefixedVideoExitFullScreen: |
| 674 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please
use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; |
| 675 |
658 case PrefixedMediaSourceOpen: | 676 case PrefixedMediaSourceOpen: |
659 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst
ead."; | 677 return "'WebKitMediaSource' is deprecated. Please use 'MediaSource' inst
ead."; |
660 | 678 |
661 case DOMImplementationCreateCSSStyleSheet: | 679 case DOMImplementationCreateCSSStyleSheet: |
662 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; | 680 return "'DOMImplementation.createCSSStyleSheet()' is deprecated."; |
663 | 681 |
664 case MediaErrorEncrypted: | 682 case MediaErrorEncrypted: |
665 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code
is never used."; | 683 return "'MediaError.MEDIA_ERR_ENCRYPTED' is deprecated. This error code
is never used."; |
666 | 684 |
667 case HTMLSourceElementMedia: | 685 case HTMLSourceElementMedia: |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 746 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
729 { | 747 { |
730 // FIXME: We may want to handle stylesheets that have multiple owners | 748 // FIXME: We may want to handle stylesheets that have multiple owners |
731 // http://crbug.com/242125 | 749 // http://crbug.com/242125 |
732 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 750 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
733 return getFrom(sheetContents->singleOwnerDocument()); | 751 return getFrom(sheetContents->singleOwnerDocument()); |
734 return 0; | 752 return 0; |
735 } | 753 } |
736 | 754 |
737 } // namespace WebCore | 755 } // namespace WebCore |
OLD | NEW |