Chromium Code Reviews| 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 678 | 678 |
| 679 case PrefixedPutImageDataHD: | 679 case PrefixedPutImageDataHD: |
| 680 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P lease use putImageData instead."; | 680 return "'CanvasRenderingContext2D.webkitPutImageDataHD' is deprecated. P lease use putImageData instead."; |
| 681 | 681 |
| 682 case ShadowRootApplyAuthorStyles: | 682 case ShadowRootApplyAuthorStyles: |
| 683 return "'ShadowRoot.applyAuthorStyles' is deprecated."; | 683 return "'ShadowRoot.applyAuthorStyles' is deprecated."; |
| 684 | 684 |
| 685 case PrefixedSpeechAttribute: | 685 case PrefixedSpeechAttribute: |
| 686 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas e use the JavaScript API instead."; | 686 return "The 'x-webkit-speech' input field attribute is deprecated. Pleas e use the JavaScript API instead."; |
| 687 | 687 |
| 688 case PrefixedGamepad: | |
| 689 return "'navigator.webkitGetGamepads' is deprecated. Please use the unpr efixed 'navigator.getGamepads' method instead."; | |
|
eseidel
2014/03/06 01:56:16
You can remove "the unprefixed" and "method" and
| |
| 690 | |
| 688 // Features that aren't deprecated don't have a deprecation message. | 691 // Features that aren't deprecated don't have a deprecation message. |
| 689 default: | 692 default: |
| 690 return String(); | 693 return String(); |
| 691 } | 694 } |
| 692 } | 695 } |
| 693 | 696 |
| 694 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 697 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 695 { | 698 { |
| 696 ASSERT(feature >= firstCSSProperty); | 699 ASSERT(feature >= firstCSSProperty); |
| 697 ASSERT(feature <= lastCSSProperty); | 700 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 726 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 729 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 727 { | 730 { |
| 728 // FIXME: We may want to handle stylesheets that have multiple owners | 731 // FIXME: We may want to handle stylesheets that have multiple owners |
| 729 // http://crbug.com/242125 | 732 // http://crbug.com/242125 |
| 730 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 733 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 731 return getFrom(sheetContents->singleOwnerDocument()); | 734 return getFrom(sheetContents->singleOwnerDocument()); |
| 732 return 0; | 735 return 0; |
| 733 } | 736 } |
| 734 | 737 |
| 735 } // namespace WebCore | 738 } // namespace WebCore |
| OLD | NEW |