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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 | 965 |
966 case RTCPeerConnectionCreateAnswerLegacyNoFailureCallback: | 966 case RTCPeerConnectionCreateAnswerLegacyNoFailureCallback: |
967 return "RTCPeerConnection.CreateAnswer without a failure callback is dep
recated. The failure callback will be a required parameter in M50. See https://w
ww.chromestatus.com/feature/5663288008376320 for more details"; | 967 return "RTCPeerConnection.CreateAnswer without a failure callback is dep
recated. The failure callback will be a required parameter in M50. See https://w
ww.chromestatus.com/feature/5663288008376320 for more details"; |
968 | 968 |
969 case RTCPeerConnectionCreateOfferLegacyNoFailureCallback: | 969 case RTCPeerConnectionCreateOfferLegacyNoFailureCallback: |
970 return "RTCPeerConnection.CreateOffer without a failure callback is depr
ecated. The failure callback will be a required parameter in M50. See https://ww
w.chromestatus.com/feature/5663288008376320 for more details"; | 970 return "RTCPeerConnection.CreateOffer without a failure callback is depr
ecated. The failure callback will be a required parameter in M50. See https://ww
w.chromestatus.com/feature/5663288008376320 for more details"; |
971 | 971 |
972 case ObjectObserve: | 972 case ObjectObserve: |
973 return willBeRemoved("'Object.observe'", 50, "6147094632988672"); | 973 return willBeRemoved("'Object.observe'", 50, "6147094632988672"); |
974 | 974 |
| 975 case NonCSSStyleSheetType: |
| 976 return String::format("Using stylesheet links with types other than 'tex
t/css' is deprecated and will be removed in %s.", milestoneString(50)); |
| 977 |
975 // Features that aren't deprecated don't have a deprecation message. | 978 // Features that aren't deprecated don't have a deprecation message. |
976 default: | 979 default: |
977 return String(); | 980 return String(); |
978 } | 981 } |
979 } | 982 } |
980 | 983 |
981 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature) | 984 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature) |
982 { | 985 { |
983 ASSERT(feature >= firstCSSProperty); | 986 ASSERT(feature >= firstCSSProperty); |
984 ASSERT(feature <= lastUnresolvedCSSProperty); | 987 ASSERT(feature <= lastUnresolvedCSSProperty); |
(...skipping 27 matching lines...) Expand all Loading... |
1012 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1015 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
1013 { | 1016 { |
1014 // FIXME: We may want to handle stylesheets that have multiple owners | 1017 // FIXME: We may want to handle stylesheets that have multiple owners |
1015 // https://crbug.com/242125 | 1018 // https://crbug.com/242125 |
1016 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1019 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
1017 return getFrom(sheetContents->singleOwnerDocument()); | 1020 return getFrom(sheetContents->singleOwnerDocument()); |
1018 return 0; | 1021 return 0; |
1019 } | 1022 } |
1020 | 1023 |
1021 } // namespace blink | 1024 } // namespace blink |
OLD | NEW |