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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 | 663 |
664 case PrefixedPutImageDataHD: | 664 case PrefixedPutImageDataHD: |
665 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P
lease use putImageData instead."; | 665 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P
lease use putImageData instead."; |
666 | 666 |
667 case ShadowRootApplyAuthorStyles: | 667 case ShadowRootApplyAuthorStyles: |
668 return "'ShadowRoot.applyAuthorStyles' is deprecated."; | 668 return "'ShadowRoot.applyAuthorStyles' is deprecated."; |
669 | 669 |
670 case PrefixedSpeechAttribute: | 670 case PrefixedSpeechAttribute: |
671 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas
e use the JavaScript API instead."; | 671 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas
e use the JavaScript API instead."; |
672 | 672 |
| 673 case PrefixedGamepad: |
| 674 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; |
| 675 |
673 // Features that aren't deprecated don't have a deprecation message. | 676 // Features that aren't deprecated don't have a deprecation message. |
674 default: | 677 default: |
675 return String(); | 678 return String(); |
676 } | 679 } |
677 } | 680 } |
678 | 681 |
679 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 682 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
680 { | 683 { |
681 ASSERT(feature >= firstCSSProperty); | 684 ASSERT(feature >= firstCSSProperty); |
682 ASSERT(feature <= lastCSSProperty); | 685 ASSERT(feature <= lastCSSProperty); |
(...skipping 28 matching lines...) Expand all Loading... |
711 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 714 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
712 { | 715 { |
713 // FIXME: We may want to handle stylesheets that have multiple owners | 716 // FIXME: We may want to handle stylesheets that have multiple owners |
714 // http://crbug.com/242125 | 717 // http://crbug.com/242125 |
715 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 718 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
716 return getFrom(sheetContents->singleOwnerDocument()); | 719 return getFrom(sheetContents->singleOwnerDocument()); |
717 return 0; | 720 return 0; |
718 } | 721 } |
719 | 722 |
720 } // namespace WebCore | 723 } // namespace WebCore |
OLD | NEW |