| 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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 938     case MediaStreamStop: | 938     case MediaStreamStop: | 
| 939         return "'MediaStream.stop()' is deprecated and will be removed in M47, a
      round November 2015. Please use 'MediaStream.active' instead."; | 939         return "'MediaStream.stop()' is deprecated and will be removed in M47, a
      round November 2015. Please use 'MediaStream.active' instead."; | 
| 940 | 940 | 
| 941     case MediaStreamEnded: | 941     case MediaStreamEnded: | 
| 942         return "'MediaStream.ended' is deprecated and will be removed in M47, ar
      ound November 2015. Please use 'MediaStream.active' instead."; | 942         return "'MediaStream.ended' is deprecated and will be removed in M47, ar
      ound November 2015. Please use 'MediaStream.active' instead."; | 
| 943 | 943 | 
| 944     case PermissionStatusStatus: | 944     case PermissionStatusStatus: | 
| 945         return "PermissionStatus.status is deprecated and will be removed in M47
      , around November 2015. Please use PermissionStatus.state instead."; | 945         return "PermissionStatus.status is deprecated and will be removed in M47
      , around November 2015. Please use PermissionStatus.state instead."; | 
| 946 | 946 | 
| 947     case ElementOffsetParent: | 947     case ElementOffsetParent: | 
| 948         return "'Element.offsetParent' is deprecated and will be removed in M47,
       around November 2015. The offset* attributes are only standardized and widely s
      upported for HTML elements."; | 948         return "'Element.offsetParent' is deprecated and will be removed in M47,
       around Novemver 2015. The offset* attributes are only standardized and widely s
      upported for HTML elements."; | 
| 949 | 949 | 
| 950     case ElementOffsetTop: | 950     case ElementOffsetTop: | 
| 951         return "'Element.offsetTop' is deprecated and will be removed in M47, ar
      ound November 2015. The offset* attributes are only standardized and widely supp
      orted for HTML elements."; | 951         return "'Element.offsetTop' is deprecated and will be removed in M47, ar
      ound Novemver 2015. The offset* attributes are only standardized and widely supp
      orted for HTML elements."; | 
| 952 | 952 | 
| 953     case ElementOffsetLeft: | 953     case ElementOffsetLeft: | 
| 954         return "'Element.offsetLeft' is deprecated and will be removed in M47, a
      round November 2015. The offset* attributes are only standardized and widely sup
      ported for HTML elements."; | 954         return "'Element.offsetLeft' is deprecated and will be removed in M47, a
      round Novemver 2015. The offset* attributes are only standardized and widely sup
      ported for HTML elements."; | 
| 955 | 955 | 
| 956     case ElementOffsetWidth: | 956     case ElementOffsetWidth: | 
| 957         return "'Element.offsetWidth' is deprecated and will be removed in M47, 
      around November 2015. The offset* attributes are only standardized and widely su
      pported for HTML elements."; | 957         return "'Element.offsetWidth' is deprecated and will be removed in M47, 
      around Novemver 2015. The offset* attributes are only standardized and widely su
      pported for HTML elements."; | 
| 958 | 958 | 
| 959     case ElementOffsetHeight: | 959     case ElementOffsetHeight: | 
| 960         return "'Element.offsetHeight' is deprecated and will be removed in M47,
       around November 2015. The offset* attributes are only standardized and widely s
      upported for HTML elements."; | 960         return "'Element.offsetHeight' is deprecated and will be removed in M47,
       around Novemver 2015. The offset* attributes are only standardized and widely s
      upported for HTML elements."; | 
| 961 | 961 | 
| 962     case PrefixedPerformanceClearResourceTimings: | 962     case PrefixedPerformanceClearResourceTimings: | 
| 963         return replacedBy("Performance.webkitClearResourceTimings", "Performance
      .clearResourceTimings"); | 963         return replacedBy("Performance.webkitClearResourceTimings", "Performance
      .clearResourceTimings"); | 
| 964 | 964 | 
| 965     case PrefixedPerformanceSetResourceTimingBufferSize: | 965     case PrefixedPerformanceSetResourceTimingBufferSize: | 
| 966         return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf
      ormance.setResourceTimingBufferSize"); | 966         return replacedBy("Performance.webkitSetResourceTimingBufferSize", "Perf
      ormance.setResourceTimingBufferSize"); | 
| 967 | 967 | 
| 968     case PrefixedPerformanceResourceTimingBufferFull: | 968     case PrefixedPerformanceResourceTimingBufferFull: | 
| 969         return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo
      rmance.onresourcetimingbufferfull"); | 969         return replacedBy("Performance.onwebkitresourcetimingbufferfull", "Perfo
      rmance.onresourcetimingbufferfull"); | 
| 970 | 970 | 
| 971     case FetchAPIRequestContext: | 971     case FetchAPIRequestContext: | 
| 972         return "Request.context is deprecated and will be removed in M46 (see: h
      ttps://www.chromestatus.com/feature/5534702526005248)."; | 972         return "Request.context is deprecated and will be removed in M46 (see: h
      ttps://www.chromestatus.com/feature/5534702526005248)."; | 
| 973 | 973 | 
| 974     case LegacyCSSValueIntrinsic: |  | 
| 975         return "The 'intrinsic' CSS keyword is deprecated and will be removed in
       M47, around November 2015. Use the standard 'max-content' keyword instead."; |  | 
| 976 |  | 
| 977     case LegacyCSSValueMinIntrinsic: |  | 
| 978         return "The 'min-intrinsic' CSS keyword is deprecated and will be remove
      d in M47, around November 2015. Use the standard 'min-content' keyword instead."
      ; |  | 
| 979 |  | 
| 980     // Features that aren't deprecated don't have a deprecation message. | 974     // Features that aren't deprecated don't have a deprecation message. | 
| 981     default: | 975     default: | 
| 982         return String(); | 976         return String(); | 
| 983     } | 977     } | 
| 984 } | 978 } | 
| 985 | 979 | 
| 986 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 980 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 
| 987 { | 981 { | 
| 988     ASSERT(feature >= firstCSSProperty); | 982     ASSERT(feature >= firstCSSProperty); | 
| 989     ASSERT(feature <= lastUnresolvedCSSProperty); | 983     ASSERT(feature <= lastUnresolvedCSSProperty); | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 1017 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 1011 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 
| 1018 { | 1012 { | 
| 1019     // FIXME: We may want to handle stylesheets that have multiple owners | 1013     // FIXME: We may want to handle stylesheets that have multiple owners | 
| 1020     //        http://crbug.com/242125 | 1014     //        http://crbug.com/242125 | 
| 1021     if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1015     if (sheetContents && sheetContents->hasSingleOwnerNode()) | 
| 1022         return getFrom(sheetContents->singleOwnerDocument()); | 1016         return getFrom(sheetContents->singleOwnerDocument()); | 
| 1023     return 0; | 1017     return 0; | 
| 1024 } | 1018 } | 
| 1025 | 1019 | 
| 1026 } // namespace blink | 1020 } // namespace blink | 
| OLD | NEW | 
|---|