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

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: Add more detailed use counters 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 case PrefixedMouseEventMovementY: 928 case PrefixedMouseEventMovementY:
929 return replacedBy("webkitMovementY", "movementY"); 929 return replacedBy("webkitMovementY", "movementY");
930 930
931 case VideoFullscreenAllowedExemption: 931 case VideoFullscreenAllowedExemption:
932 return "Entering fullscreen in an <iframe> with no allowfullscreen attri bute is deprecated and will stop working in M46, around October 2015. Please use the allowfullscreen attribute."; 932 return "Entering fullscreen in an <iframe> with no allowfullscreen attri bute is deprecated and will stop working in M46, around October 2015. Please use the allowfullscreen attribute.";
933 933
934 case SVGSMILElementInDocument: 934 case SVGSMILElementInDocument:
935 case SVGSMILAnimationInImageRegardlessOfCache: 935 case SVGSMILAnimationInImageRegardlessOfCache:
936 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an d will be removed. Please use CSS animations or Web animations instead."; 936 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an d will be removed. Please use CSS animations or Web animations instead.";
937 937
938 case DOMStringListContains:
939 return "'DOMStringList.contains()' is deprecated, and will be removed.";
940
941 case V8DOMStringList_Item_Method:
942 return "'DOMStringList.item(n)' is deprecated, and will be removed. Plea se use indexing instead, e.g.: list[n]";
943
938 // Features that aren't deprecated don't have a deprecation message. 944 // Features that aren't deprecated don't have a deprecation message.
939 default: 945 default:
940 return String(); 946 return String();
941 } 947 }
942 } 948 }
943 949
944 void UseCounter::count(CSSParserContext context, CSSPropertyID feature) 950 void UseCounter::count(CSSParserContext context, CSSPropertyID feature)
945 { 951 {
946 ASSERT(feature >= firstCSSProperty); 952 ASSERT(feature >= firstCSSProperty);
947 ASSERT(feature <= lastUnresolvedCSSProperty); 953 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
975 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 981 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
976 { 982 {
977 // FIXME: We may want to handle stylesheets that have multiple owners 983 // FIXME: We may want to handle stylesheets that have multiple owners
978 // http://crbug.com/242125 984 // http://crbug.com/242125
979 if (sheetContents && sheetContents->hasSingleOwnerNode()) 985 if (sheetContents && sheetContents->hasSingleOwnerNode())
980 return getFrom(sheetContents->singleOwnerDocument()); 986 return getFrom(sheetContents->singleOwnerDocument());
981 return 0; 987 return 0;
982 } 988 }
983 989
984 } // namespace blink 990 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698