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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 | 934 |
935 case MediaStreamStop: | 935 case MediaStreamStop: |
936 return "'MediaStream.stop()' is deprecated and will be removed in M47, a
round November 2015. Please use 'MediaStream.active' instead."; | 936 return "'MediaStream.stop()' is deprecated and will be removed in M47, a
round November 2015. Please use 'MediaStream.active' instead."; |
937 | 937 |
938 case MediaStreamEnded: | 938 case MediaStreamEnded: |
939 return "'MediaStream.ended' is deprecated and will be removed in M47, ar
ound November 2015. Please use 'MediaStream.active' instead."; | 939 return "'MediaStream.ended' is deprecated and will be removed in M47, ar
ound November 2015. Please use 'MediaStream.active' instead."; |
940 | 940 |
941 case PermissionStatusStatus: | 941 case PermissionStatusStatus: |
942 return "PermissionStatus.status is deprecated and will be removed in M47
, around November 2015. Please use PermissionStatus.state instead."; | 942 return "PermissionStatus.status is deprecated and will be removed in M47
, around November 2015. Please use PermissionStatus.state instead."; |
943 | 943 |
| 944 case ElementOffsetParent: |
| 945 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."; |
| 946 |
| 947 case ElementOffsetTop: |
| 948 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."; |
| 949 |
| 950 case ElementOffsetLeft: |
| 951 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."; |
| 952 |
| 953 case ElementOffsetWidth: |
| 954 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."; |
| 955 |
| 956 case ElementOffsetHeight: |
| 957 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."; |
| 958 |
944 // Features that aren't deprecated don't have a deprecation message. | 959 // Features that aren't deprecated don't have a deprecation message. |
945 default: | 960 default: |
946 return String(); | 961 return String(); |
947 } | 962 } |
948 } | 963 } |
949 | 964 |
950 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 965 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
951 { | 966 { |
952 ASSERT(feature >= firstCSSProperty); | 967 ASSERT(feature >= firstCSSProperty); |
953 ASSERT(feature <= lastUnresolvedCSSProperty); | 968 ASSERT(feature <= lastUnresolvedCSSProperty); |
(...skipping 27 matching lines...) Expand all Loading... |
981 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 996 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
982 { | 997 { |
983 // FIXME: We may want to handle stylesheets that have multiple owners | 998 // FIXME: We may want to handle stylesheets that have multiple owners |
984 // http://crbug.com/242125 | 999 // http://crbug.com/242125 |
985 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 1000 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
986 return getFrom(sheetContents->singleOwnerDocument()); | 1001 return getFrom(sheetContents->singleOwnerDocument()); |
987 return 0; | 1002 return 0; |
988 } | 1003 } |
989 | 1004 |
990 } // namespace blink | 1005 } // namespace blink |
OLD | NEW |