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

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

Issue 1526563005: Deprecate document.defaultCharset (to be removed in M50) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update web-platform-tests/dom/historical-expected.txt Created 5 years 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 954
955 case V8SVGElement_OffsetHeight_AttributeGetter: 955 case V8SVGElement_OffsetHeight_AttributeGetter:
956 return willBeRemoved("'SVGElement.offsetHeight'", 50, "5724912467574784" ); 956 return willBeRemoved("'SVGElement.offsetHeight'", 50, "5724912467574784" );
957 957
958 case MediaStreamTrackGetSources: 958 case MediaStreamTrackGetSources:
959 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom estatus.com/feature/4765305641369600 for more details."; 959 return "MediaStreamTrack.getSources is deprecated. See https://www.chrom estatus.com/feature/4765305641369600 for more details.";
960 960
961 case CSSXGetComputedStyleQueries: 961 case CSSXGetComputedStyleQueries:
962 return replacedWillBeRemoved("'getComputedStyle(e).cssXx' (except .cssFl oat)", "'getComputedStyle(e).xx'", 50, "5006796888473600"); 962 return replacedWillBeRemoved("'getComputedStyle(e).cssXx' (except .cssFl oat)", "'getComputedStyle(e).xx'", 50, "5006796888473600");
963 963
964 case DocumentDefaultCharset:
965 return willBeRemoved("'Document.defaultCharset'", 50, "6217124578066432" );
966
964 // Features that aren't deprecated don't have a deprecation message. 967 // Features that aren't deprecated don't have a deprecation message.
965 default: 968 default:
966 return String(); 969 return String();
967 } 970 }
968 } 971 }
969 972
970 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature) 973 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature)
971 { 974 {
972 ASSERT(feature >= firstCSSProperty); 975 ASSERT(feature >= firstCSSProperty);
973 ASSERT(feature <= lastUnresolvedCSSProperty); 976 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
1001 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1004 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1002 { 1005 {
1003 // FIXME: We may want to handle stylesheets that have multiple owners 1006 // FIXME: We may want to handle stylesheets that have multiple owners
1004 // https://crbug.com/242125 1007 // https://crbug.com/242125
1005 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1008 if (sheetContents && sheetContents->hasSingleOwnerNode())
1006 return getFrom(sheetContents->singleOwnerDocument()); 1009 return getFrom(sheetContents->singleOwnerDocument());
1007 return 0; 1010 return 0;
1008 } 1011 }
1009 1012
1010 } // namespace blink 1013 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698