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