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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 | 921 |
922 case CSSSelectorPseudoShadow: | 922 case CSSSelectorPseudoShadow: |
923 return "::shadow pseudo-element is deprecated. See https://www.chromesta
tus.com/features/6750456638341120 for more details."; | 923 return "::shadow pseudo-element is deprecated. See https://www.chromesta
tus.com/features/6750456638341120 for more details."; |
924 | 924 |
925 case PrefixedMouseEventMovementX: | 925 case PrefixedMouseEventMovementX: |
926 return replacedBy("webkitMovementX", "movementX"); | 926 return replacedBy("webkitMovementX", "movementX"); |
927 | 927 |
928 case PrefixedMouseEventMovementY: | 928 case PrefixedMouseEventMovementY: |
929 return replacedBy("webkitMovementY", "movementY"); | 929 return replacedBy("webkitMovementY", "movementY"); |
930 | 930 |
| 931 case DOMStringListContains: |
| 932 return "'DOMStringList.contains()' is deprecated, and will be removed."; |
| 933 |
| 934 case DOMStringListItem: |
| 935 return "'DOMStringList.item(n)' is deprecated, and will be removed. Plea
se use indexing instead, e.g.: list[n]"; |
| 936 |
931 // Features that aren't deprecated don't have a deprecation message. | 937 // Features that aren't deprecated don't have a deprecation message. |
932 default: | 938 default: |
933 return String(); | 939 return String(); |
934 } | 940 } |
935 } | 941 } |
936 | 942 |
937 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) | 943 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) |
938 { | 944 { |
939 ASSERT(feature >= firstCSSProperty); | 945 ASSERT(feature >= firstCSSProperty); |
940 ASSERT(feature <= lastUnresolvedCSSProperty); | 946 ASSERT(feature <= lastUnresolvedCSSProperty); |
(...skipping 27 matching lines...) Expand all Loading... |
968 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) | 974 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) |
969 { | 975 { |
970 // FIXME: We may want to handle stylesheets that have multiple owners | 976 // FIXME: We may want to handle stylesheets that have multiple owners |
971 // http://crbug.com/242125 | 977 // http://crbug.com/242125 |
972 if (sheetContents && sheetContents->hasSingleOwnerNode()) | 978 if (sheetContents && sheetContents->hasSingleOwnerNode()) |
973 return getFrom(sheetContents->singleOwnerDocument()); | 979 return getFrom(sheetContents->singleOwnerDocument()); |
974 return 0; | 980 return 0; |
975 } | 981 } |
976 | 982 |
977 } // namespace blink | 983 } // namespace blink |
OLD | NEW |