Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: Source/core/frame/UseCounter.cpp

Issue 966843002: Mark DOMStringList.contains() as deprecated, add console warning. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« Source/core/frame/UseCounter.h ('K') | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698