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 | |
978 // Features that aren't deprecated don't have a deprecation message. | 975 // Features that aren't deprecated don't have a deprecation message. |
979 default: | 976 default: |
980 return String(); | 977 return String(); |
981 } | 978 } |
982 } | 979 } |
983 | 980 |
984 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature) | 981 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature) |
985 { | 982 { |
986 ASSERT(feature >= firstCSSProperty); | 983 ASSERT(feature >= firstCSSProperty); |
987 ASSERT(feature <= lastUnresolvedCSSProperty); | 984 ASSERT(feature <= lastUnresolvedCSSProperty); |
(...skipping 27 matching lines...) Expand all Loading... |
1015 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1012 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
1016 { | 1013 { |
1017 // FIXME: We may want to handle stylesheets that have multiple owners | 1014 // FIXME: We may want to handle stylesheets that have multiple owners |
1018 // https://crbug.com/242125 | 1015 // https://crbug.com/242125 |
1019 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1016 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
1020 return getFrom(sheetContents->singleOwnerDocument()); | 1017 return getFrom(sheetContents->singleOwnerDocument()); |
1021 return 0; | 1018 return 0; |
1022 } | 1019 } |
1023 | 1020 |
1024 } // namespace blink | 1021 } // namespace blink |
OLD | NEW |