| 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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: | 676 case ShadowRootApplyAuthorStyles: |
| 677 return "'ShadowRoot.applyAuthorStyles' is deprecated."; | 677 return "'ShadowRoot.applyAuthorStyles' is deprecated."; |
| 678 | 678 |
| 679 case PrefixedSpeechAttribute: | 679 case PrefixedSpeechAttribute: |
| 680 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."; |
| 681 | 681 |
| 682 case PrefixedGamepad: |
| 683 return "'navigator.webkitGetGamepads' is deprecated. Please use 'navigat
or.getGamepads' instead."; |
| 684 |
| 682 // Features that aren't deprecated don't have a deprecation message. | 685 // Features that aren't deprecated don't have a deprecation message. |
| 683 default: | 686 default: |
| 684 return String(); | 687 return String(); |
| 685 } | 688 } |
| 686 } | 689 } |
| 687 | 690 |
| 688 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 691 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 689 { | 692 { |
| 690 ASSERT(feature >= firstCSSProperty); | 693 ASSERT(feature >= firstCSSProperty); |
| 691 ASSERT(feature <= lastCSSProperty); | 694 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 720 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 723 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 721 { | 724 { |
| 722 // FIXME: We may want to handle stylesheets that have multiple owners | 725 // FIXME: We may want to handle stylesheets that have multiple owners |
| 723 // http://crbug.com/242125 | 726 // http://crbug.com/242125 |
| 724 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 727 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 725 return getFrom(sheetContents->singleOwnerDocument()); | 728 return getFrom(sheetContents->singleOwnerDocument()); |
| 726 return 0; | 729 return 0; |
| 727 } | 730 } |
| 728 | 731 |
| 729 } // namespace WebCore | 732 } // namespace WebCore |
| OLD | NEW |