| 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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 | 805 |
| 806 case GetMatchedCSSRules: | 806 case GetMatchedCSSRules: |
| 807 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; | 807 return "'getMatchedCSSRules()' is deprecated. For more help, check https
://code.google.com/p/chromium/issues/detail?id=437569#c2"; |
| 808 | 808 |
| 809 case DocumentSetCharset: | 809 case DocumentSetCharset: |
| 810 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; | 810 return "Setting 'Document.charset' is deprecated. Please use '<meta char
set=\"UTF-8\">' instead."; |
| 811 | 811 |
| 812 case PrefixedImageSmoothingEnabled: | 812 case PrefixedImageSmoothingEnabled: |
| 813 return replacedBy("CanvasRenderingContext2D.webkitImageSmoothingEnabled"
, "CanvasRenderingContext2D.imageSmoothingEnabled"); | 813 return replacedBy("CanvasRenderingContext2D.webkitImageSmoothingEnabled"
, "CanvasRenderingContext2D.imageSmoothingEnabled"); |
| 814 | 814 |
| 815 case DeprecatedDopplerFactor: |
| 816 return "dopplerFactor is deprecated and will be removed in M45 when all
doppler effects are removed"; |
| 817 case DeprecatedSpeedOfSound: |
| 818 return "speedOfSound is deprecated and will be removed in M45 when all d
oppler effects are removed"; |
| 819 case DeprecatedSetVelocity: |
| 820 return "setVelocity() is deprecated and will be removed in M45 when all
doppler effects are removed"; |
| 821 |
| 815 // Features that aren't deprecated don't have a deprecation message. | 822 // Features that aren't deprecated don't have a deprecation message. |
| 816 default: | 823 default: |
| 817 return String(); | 824 return String(); |
| 818 } | 825 } |
| 819 } | 826 } |
| 820 | 827 |
| 821 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 828 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 822 { | 829 { |
| 823 ASSERT(feature >= firstCSSProperty); | 830 ASSERT(feature >= firstCSSProperty); |
| 824 ASSERT(feature <= lastCSSProperty); | 831 ASSERT(feature <= lastCSSProperty); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 853 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 860 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 854 { | 861 { |
| 855 // FIXME: We may want to handle stylesheets that have multiple owners | 862 // FIXME: We may want to handle stylesheets that have multiple owners |
| 856 // http://crbug.com/242125 | 863 // http://crbug.com/242125 |
| 857 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 864 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 858 return getFrom(sheetContents->singleOwnerDocument()); | 865 return getFrom(sheetContents->singleOwnerDocument()); |
| 859 return 0; | 866 return 0; |
| 860 } | 867 } |
| 861 | 868 |
| 862 } // namespace blink | 869 } // namespace blink |
| OLD | NEW |