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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | 684 |
685 case AttributeSpecified: | 685 case AttributeSpecified: |
686 return "Attr.specified is deprecated. Its value is always true."; | 686 return "Attr.specified is deprecated. Its value is always true."; |
687 | 687 |
688 case SVGElementGetPresentationAttribute: | 688 case SVGElementGetPresentationAttribute: |
689 return "CSSValue and SVGElement.getPresentationAttribute are deprecated.
Please use getPropertyValue and parse the return value instead."; | 689 return "CSSValue and SVGElement.getPresentationAttribute are deprecated.
Please use getPropertyValue and parse the return value instead."; |
690 | 690 |
691 case TextTrackCueConstructor: | 691 case TextTrackCueConstructor: |
692 return "The 'TextTrackCue' constructor is deprecated. Please use 'VTTCue
' instead."; | 692 return "The 'TextTrackCue' constructor is deprecated. Please use 'VTTCue
' instead."; |
693 | 693 |
| 694 case PrefixedVideoSupportsFullscreen: |
| 695 return "'HTMLVideoElement.webkitSupportsFullscreen' is deprecated. Its v
alue is true if the video is loaded."; |
| 696 |
| 697 case PrefixedVideoDisplayingFullscreen: |
| 698 return "'HTMLVideoElement.webkitDisplayingFullscreen' is deprecated. Ple
ase use the 'fullscreenchange' and 'webkitfullscreenchange' events instead."; |
| 699 |
| 700 case PrefixedVideoEnterFullscreen: |
| 701 return "'HTMLVideoElement.webkitEnterFullscreen()' is deprecated. Please
use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste
ad."; |
| 702 |
| 703 case PrefixedVideoExitFullscreen: |
| 704 return "'HTMLVideoElement.webkitExitFullscreen()' is deprecated. Please
use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; |
| 705 |
| 706 case PrefixedVideoEnterFullScreen: |
| 707 return "'HTMLVideoElement.webkitEnterFullScreen()' is deprecated. Please
use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inste
ad."; |
| 708 |
| 709 case PrefixedVideoExitFullScreen: |
| 710 return "'HTMLVideoElement.webkitExitFullScreen()' is deprecated. Please
use 'Document.exitFullscreen()' and 'Document.webkitExitFullscreen()' instead."; |
| 711 |
694 // Features that aren't deprecated don't have a deprecation message. | 712 // Features that aren't deprecated don't have a deprecation message. |
695 default: | 713 default: |
696 return String(); | 714 return String(); |
697 } | 715 } |
698 } | 716 } |
699 | 717 |
700 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 718 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
701 { | 719 { |
702 ASSERT(feature >= firstCSSProperty); | 720 ASSERT(feature >= firstCSSProperty); |
703 ASSERT(feature <= lastCSSProperty); | 721 ASSERT(feature <= lastCSSProperty); |
(...skipping 28 matching lines...) Expand all Loading... |
732 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 750 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
733 { | 751 { |
734 // FIXME: We may want to handle stylesheets that have multiple owners | 752 // FIXME: We may want to handle stylesheets that have multiple owners |
735 // http://crbug.com/242125 | 753 // http://crbug.com/242125 |
736 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 754 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
737 return getFrom(sheetContents->singleOwnerDocument()); | 755 return getFrom(sheetContents->singleOwnerDocument()); |
738 return 0; | 756 return 0; |
739 } | 757 } |
740 | 758 |
741 } // namespace WebCore | 759 } // namespace WebCore |
OLD | NEW |