| 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 | 705 |
| 706 case PrefixedRequestAnimationFrame: | 706 case PrefixedRequestAnimationFrame: |
| 707 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the
standard 'requestAnimationFrame' instead."; | 707 return "'webkitRequestAnimationFrame' is vendor-specific. Please use the
standard 'requestAnimationFrame' instead."; |
| 708 | 708 |
| 709 case PrefixedCancelAnimationFrame: | 709 case PrefixedCancelAnimationFrame: |
| 710 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the
standard 'cancelAnimationFrame' instead."; | 710 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the
standard 'cancelAnimationFrame' instead."; |
| 711 | 711 |
| 712 case PrefixedCancelRequestAnimationFrame: | 712 case PrefixedCancelRequestAnimationFrame: |
| 713 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; | 713 return "'webkitCancelRequestAnimationFrame' is vendor-specific. Please u
se the standard 'cancelAnimationFrame' instead."; |
| 714 | 714 |
| 715 case DocumentCreateAttributeNS: |
| 716 return "'Document.createAttributeNS' is deprecated and has been removed
from DOM4 (http://w3.org/tr/dom)."; |
| 717 |
| 718 case AttributeOwnerElement: |
| 719 return "'Attr.ownerElement' is deprecated and has been removed from DOM4
(http://w3.org/tr/dom)."; |
| 720 |
| 721 case ElementSetAttributeNodeNS: |
| 722 return "'Element.setAttributeNodeNS' is deprecated and has been removed
from DOM4 (http://w3.org/tr/dom)."; |
| 723 |
| 715 // Features that aren't deprecated don't have a deprecation message. | 724 // Features that aren't deprecated don't have a deprecation message. |
| 716 default: | 725 default: |
| 717 return String(); | 726 return String(); |
| 718 } | 727 } |
| 719 } | 728 } |
| 720 | 729 |
| 721 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 730 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 722 { | 731 { |
| 723 ASSERT(feature >= firstCSSProperty); | 732 ASSERT(feature >= firstCSSProperty); |
| 724 ASSERT(feature <= lastCSSProperty); | 733 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 753 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 762 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 754 { | 763 { |
| 755 // FIXME: We may want to handle stylesheets that have multiple owners | 764 // FIXME: We may want to handle stylesheets that have multiple owners |
| 756 // http://crbug.com/242125 | 765 // http://crbug.com/242125 |
| 757 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 766 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 758 return getFrom(sheetContents->singleOwnerDocument()); | 767 return getFrom(sheetContents->singleOwnerDocument()); |
| 759 return 0; | 768 return 0; |
| 760 } | 769 } |
| 761 | 770 |
| 762 } // namespace WebCore | 771 } // namespace WebCore |
| OLD | NEW |