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 HTMLSourceElementMedia: | 667 case HTMLSourceElementMedia: |
668 return "'HTMLSourceElement.media' is deprecated. This attribute doesn't
do anything."; | 668 return "'HTMLSourceElement.media' is deprecated. This attribute doesn't
do anything."; |
669 | 669 |
670 case PrefixedGetImageDataHD: | 670 case PrefixedGetImageDataHD: |
671 return "'CanvasRenderingContext2D.webkitGetImageDataHD' is deprecated. P
lease use getImageData instead."; | 671 return "'CanvasRenderingContext2D.webkitGetImageDataHD' is deprecated. P
lease use getImageData instead."; |
672 | 672 |
673 case PrefixedPutImageDataHD: | 673 case PrefixedPutImageDataHD: |
674 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P
lease use putImageData instead."; | 674 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P
lease use putImageData instead."; |
675 | 675 |
676 case ShadowRootApplyAuthorStyles: | |
677 return "'ShadowRoot.applyAuthorStyles' is deprecated."; | |
678 | |
679 case PrefixedSpeechAttribute: | 676 case PrefixedSpeechAttribute: |
680 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas
e use the JavaScript API instead."; | 677 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas
e use the JavaScript API instead."; |
681 | 678 |
682 case PrefixedGamepad: | 679 case PrefixedGamepad: |
683 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; | 680 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; |
684 | 681 |
685 case PrefixedRequestAnimationFrame: | 682 case PrefixedRequestAnimationFrame: |
686 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the
standard 'requestAnimationFrame' instead."; | 683 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the
standard 'requestAnimationFrame' instead."; |
687 | 684 |
688 case PrefixedCancelAnimationFrame: | 685 case PrefixedCancelAnimationFrame: |
689 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the
standard 'cancelAnimationFrame' instead."; | 686 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the
standard 'cancelAnimationFrame' instead."; |
690 | 687 |
691 case PrefixedCancelRequestAnimationFrame: | 688 case PrefixedCancelRequestAnimationFrame: |
692 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; | 689 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; |
693 | 690 |
694 // Features that aren't deprecated don't have a deprecation message. | |
695 default: | 691 default: |
696 return String(); | 692 return String(); |
697 } | 693 } |
698 } | 694 } |
699 | 695 |
700 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 696 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
701 { | 697 { |
702 ASSERT(feature >= firstCSSProperty); | 698 ASSERT(feature >= firstCSSProperty); |
703 ASSERT(feature <= lastCSSProperty); | 699 ASSERT(feature <= lastCSSProperty); |
704 ASSERT(!isInternalProperty(feature)); | 700 ASSERT(!isInternalProperty(feature)); |
(...skipping 27 matching lines...) Expand all Loading... |
732 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 728 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
733 { | 729 { |
734 // FIXME: We may want to handle stylesheets that have multiple owners | 730 // FIXME: We may want to handle stylesheets that have multiple owners |
735 // http://crbug.com/242125 | 731 // http://crbug.com/242125 |
736 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 732 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
737 return getFrom(sheetContents->singleOwnerDocument()); | 733 return getFrom(sheetContents->singleOwnerDocument()); |
738 return 0; | 734 return 0; |
739 } | 735 } |
740 | 736 |
741 } // namespace WebCore | 737 } // namespace WebCore |
OLD | NEW |