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 |
676 case PrefixedSpeechAttribute: | 679 case PrefixedSpeechAttribute: |
677 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."; |
678 | 681 |
679 case PrefixedGamepad: | 682 case PrefixedGamepad: |
680 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; | 683 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; |
681 | 684 |
682 case PrefixedRequestAnimationFrame: | 685 case PrefixedRequestAnimationFrame: |
683 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the
standard 'requestAnimationFrame' instead."; | 686 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the
standard 'requestAnimationFrame' instead."; |
684 | 687 |
685 case PrefixedCancelAnimationFrame: | 688 case PrefixedCancelAnimationFrame: |
686 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the
standard 'cancelAnimationFrame' instead."; | 689 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the
standard 'cancelAnimationFrame' instead."; |
687 | 690 |
688 case PrefixedCancelRequestAnimationFrame: | 691 case PrefixedCancelRequestAnimationFrame: |
689 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; | 692 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; |
690 | 693 |
| 694 // Features that aren't deprecated don't have a deprecation message. |
691 default: | 695 default: |
692 return String(); | 696 return String(); |
693 } | 697 } |
694 } | 698 } |
695 | 699 |
696 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 700 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
697 { | 701 { |
698 ASSERT(feature >= firstCSSProperty); | 702 ASSERT(feature >= firstCSSProperty); |
699 ASSERT(feature <= lastCSSProperty); | 703 ASSERT(feature <= lastCSSProperty); |
700 ASSERT(!isInternalProperty(feature)); | 704 ASSERT(!isInternalProperty(feature)); |
(...skipping 27 matching lines...) Expand all Loading... |
728 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 732 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
729 { | 733 { |
730 // FIXME: We may want to handle stylesheets that have multiple owners | 734 // FIXME: We may want to handle stylesheets that have multiple owners |
731 // http://crbug.com/242125 | 735 // http://crbug.com/242125 |
732 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 736 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
733 return getFrom(sheetContents->singleOwnerDocument()); | 737 return getFrom(sheetContents->singleOwnerDocument()); |
734 return 0; | 738 return 0; |
735 } | 739 } |
736 | 740 |
737 } // namespace WebCore | 741 } // namespace WebCore |
OLD | NEW |