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

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

Issue 1501393003: Deprecate fetching stylesheets with unsupported type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 11 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
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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 965
966 case RTCPeerConnectionCreateAnswerLegacyNoFailureCallback: 966 case RTCPeerConnectionCreateAnswerLegacyNoFailureCallback:
967 return "RTCPeerConnection.CreateAnswer without a failure callback is dep recated. The failure callback will be a required parameter in M50. See https://w ww.chromestatus.com/feature/5663288008376320 for more details"; 967 return "RTCPeerConnection.CreateAnswer without a failure callback is dep recated. The failure callback will be a required parameter in M50. See https://w ww.chromestatus.com/feature/5663288008376320 for more details";
968 968
969 case RTCPeerConnectionCreateOfferLegacyNoFailureCallback: 969 case RTCPeerConnectionCreateOfferLegacyNoFailureCallback:
970 return "RTCPeerConnection.CreateOffer without a failure callback is depr ecated. The failure callback will be a required parameter in M50. See https://ww w.chromestatus.com/feature/5663288008376320 for more details"; 970 return "RTCPeerConnection.CreateOffer without a failure callback is depr ecated. The failure callback will be a required parameter in M50. See https://ww w.chromestatus.com/feature/5663288008376320 for more details";
971 971
972 case ObjectObserve: 972 case ObjectObserve:
973 return willBeRemoved("'Object.observe'", 50, "6147094632988672"); 973 return willBeRemoved("'Object.observe'", 50, "6147094632988672");
974 974
975 case NonCSSStyleSheetType:
976 return String::format("Using stylesheet links with types other than 'tex t/css' is deprecated and will be removed in %s.", milestoneString(50));
977
975 // Features that aren't deprecated don't have a deprecation message. 978 // Features that aren't deprecated don't have a deprecation message.
976 default: 979 default:
977 return String(); 980 return String();
978 } 981 }
979 } 982 }
980 983
981 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature) 984 void UseCounter::count(CSSParserMode cssParserMode, CSSPropertyID feature)
982 { 985 {
983 ASSERT(feature >= firstCSSProperty); 986 ASSERT(feature >= firstCSSProperty);
984 ASSERT(feature <= lastUnresolvedCSSProperty); 987 ASSERT(feature <= lastUnresolvedCSSProperty);
(...skipping 27 matching lines...) Expand all
1012 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents) 1015 UseCounter* UseCounter::getFrom(const StyleSheetContents* sheetContents)
1013 { 1016 {
1014 // FIXME: We may want to handle stylesheets that have multiple owners 1017 // FIXME: We may want to handle stylesheets that have multiple owners
1015 // https://crbug.com/242125 1018 // https://crbug.com/242125
1016 if (sheetContents && sheetContents->hasSingleOwnerNode()) 1019 if (sheetContents && sheetContents->hasSingleOwnerNode())
1017 return getFrom(sheetContents->singleOwnerDocument()); 1020 return getFrom(sheetContents->singleOwnerDocument());
1018 return 0; 1021 return 0;
1019 } 1022 }
1020 1023
1021 } // namespace blink 1024 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698