| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 | 893 |
| 894 case EncryptedMediaInsecureOrigin: | 894 case EncryptedMediaInsecureOrigin: |
| 895 return "requestMediaKeySystemAccess() is deprecated on insecure origins
in the specification. Support will be removed in the future. You should consider
switching your application to a secure origin, such as HTTPS. See https://goo.g
l/rStTGz for more details."; | 895 return "requestMediaKeySystemAccess() is deprecated on insecure origins
in the specification. Support will be removed in the future. You should consider
switching your application to a secure origin, such as HTTPS. See https://goo.g
l/rStTGz for more details."; |
| 896 | 896 |
| 897 case PushSubscriptionId: | 897 case PushSubscriptionId: |
| 898 return "'PushSubscription.subscriptionId' is deprecated and is now inclu
ded in 'PushSubscription.endpoint'. It will be removed in Chrome 45, around Augu
st 2015."; | 898 return "'PushSubscription.subscriptionId' is deprecated and is now inclu
ded in 'PushSubscription.endpoint'. It will be removed in Chrome 45, around Augu
st 2015."; |
| 899 | 899 |
| 900 case DocumentGetCSSCanvasContext: | 900 case DocumentGetCSSCanvasContext: |
| 901 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; | 901 return "The -webkit-canvas CSS feature is deprecated. Please use a posit
ioned <canvas> element instead."; |
| 902 | 902 |
| 903 case SVGSMILElementInDocument: |
| 904 case SVGSMILAnimationInImageRegardlessOfCache: |
| 905 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an
d will be removed. Please use CSS animations or Web animations instead."; |
| 906 |
| 903 // Features that aren't deprecated don't have a deprecation message. | 907 // Features that aren't deprecated don't have a deprecation message. |
| 904 default: | 908 default: |
| 905 return String(); | 909 return String(); |
| 906 } | 910 } |
| 907 } | 911 } |
| 908 | 912 |
| 909 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 913 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
| 910 { | 914 { |
| 911 ASSERT(feature >= firstCSSProperty); | 915 ASSERT(feature >= firstCSSProperty); |
| 912 ASSERT(feature <= lastUnresolvedCSSProperty); | 916 ASSERT(feature <= lastUnresolvedCSSProperty); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 940 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 944 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
| 941 { | 945 { |
| 942 // FIXME: We may want to handle stylesheets that have multiple owners | 946 // FIXME: We may want to handle stylesheets that have multiple owners |
| 943 // http://crbug.com/242125 | 947 // http://crbug.com/242125 |
| 944 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 948 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
| 945 return getFrom(sheetContents->singleOwnerDocument()); | 949 return getFrom(sheetContents->singleOwnerDocument()); |
| 946 return 0; | 950 return 0; |
| 947 } | 951 } |
| 948 | 952 |
| 949 } // namespace blink | 953 } // namespace blink |
| OLD | NEW |