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 PrefixedPerformanceSetResourceTimingBufferSize: | 966 case PrefixedPerformanceSetResourceTimingBufferSize: |
967 return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf
ormance.setResourceTimingBufferSize"); | 967 return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf
ormance.setResourceTimingBufferSize"); |
968 | 968 |
969 case PrefixedPerformanceResourceTimingBufferFull: | 969 case PrefixedPerformanceResourceTimingBufferFull: |
970 return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo
rmance.onresourcetimingbufferfull"); | 970 return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo
rmance.onresourcetimingbufferfull"); |
971 | 971 |
972 case FetchAPIRequestContext: | 972 case FetchAPIRequestContext: |
973 return "Request.context is deprecated and will be removed in M46 (see: h
ttps://www.chromestatus.com/feature/5534702526005248)."; | 973 return "Request.context is deprecated and will be removed in M46 (see: h
ttps://www.chromestatus.com/feature/5534702526005248)."; |
974 | 974 |
| 975 case HeaderValueNotMatchingRFC7230: |
| 976 return "Header values not matching to RFC 7230, will be deprecated (see:
https://www.chromestatus.com/feature/6457425448140800)."; |
| 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(CSSParserContext context, CSSPropertyID feature) | 984 void UseCounter::count(CSSParserContext context, 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 // http://crbug.com/242125 | 1018 // http://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 |