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

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

Issue 1901403002: Remove UserAgent ShadowRoot + Author ShadowRoot code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Element::createShadowRoot, update some tests Created 4 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/frame/Deprecation.h" 5 #include "core/frame/Deprecation.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/frame/FrameConsole.h" 9 #include "core/frame/FrameConsole.h"
10 #include "core/frame/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 case UseCounter::EncryptedMediaInsecureOrigin: 305 case UseCounter::EncryptedMediaInsecureOrigin:
306 return "requestMediaKeySystemAccess() is deprecated on insecure origins in the specification. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.g l/rStTGz for more details."; 306 return "requestMediaKeySystemAccess() is deprecated on insecure origins in the specification. Support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.g l/rStTGz for more details.";
307 307
308 case UseCounter::ApplicationCacheManifestSelectInsecureOrigin: 308 case UseCounter::ApplicationCacheManifestSelectInsecureOrigin:
309 case UseCounter::ApplicationCacheAPIInsecureOrigin: 309 case UseCounter::ApplicationCacheAPIInsecureOrigin:
310 return "Use of the Application Cache is deprecated on insecure origins. Support will be removed in the future. You should consider switching your applic ation to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more deta ils."; 310 return "Use of the Application Cache is deprecated on insecure origins. Support will be removed in the future. You should consider switching your applic ation to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more deta ils.";
311 311
312 case UseCounter::ElementCreateShadowRootMultiple: 312 case UseCounter::ElementCreateShadowRootMultiple:
313 return "Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466 8884095336448 for more details."; 313 return "Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. See https://www.chromestatus.com/features/466 8884095336448 for more details.";
314 314
315 case UseCounter::ElementCreateShadowRootMultipleWithUserAgentShadowRoot:
316 return "Calling Element.createShadowRoot() for an element which already hosts a user-agent shadow root is deprecated. See https://www.chromestatus.com/f eatures/4668884095336448 for more details.";
317
318 case UseCounter::CSSDeepCombinator: 315 case UseCounter::CSSDeepCombinator:
319 return "/deep/ combinator is deprecated. See https://www.chromestatus.co m/features/6750456638341120 for more details."; 316 return "/deep/ combinator is deprecated. See https://www.chromestatus.co m/features/6750456638341120 for more details.";
320 317
321 case UseCounter::CSSSelectorPseudoShadow: 318 case UseCounter::CSSSelectorPseudoShadow:
322 return "::shadow pseudo-element is deprecated. See https://www.chromesta tus.com/features/6750456638341120 for more details."; 319 return "::shadow pseudo-element is deprecated. See https://www.chromesta tus.com/features/6750456638341120 for more details.";
323 320
324 case UseCounter::SVGSMILElementInDocument: 321 case UseCounter::SVGSMILElementInDocument:
325 case UseCounter::SVGSMILAnimationInImageRegardlessOfCache: 322 case UseCounter::SVGSMILAnimationInImageRegardlessOfCache:
326 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an d will be removed. Please use CSS animations or Web animations instead."; 323 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an d will be removed. Please use CSS animations or Web animations instead.";
327 324
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 case UseCounter::WebAnimationsEasingAsFunctionLinear: 364 case UseCounter::WebAnimationsEasingAsFunctionLinear:
368 return String::format("Specifying animation easing as a function is depr ecated and all support will be removed in %s, at which point this will throw a T ypeError. This warning may have been triggered by the Web Animations or Polymer polyfills. See http://crbug.com/601672 for details.", milestoneString(54)); 365 return String::format("Specifying animation easing as a function is depr ecated and all support will be removed in %s, at which point this will throw a T ypeError. This warning may have been triggered by the Web Animations or Polymer polyfills. See http://crbug.com/601672 for details.", milestoneString(54));
369 366
370 // Features that aren't deprecated don't have a deprecation message. 367 // Features that aren't deprecated don't have a deprecation message.
371 default: 368 default:
372 return String(); 369 return String();
373 } 370 }
374 } 371 }
375 372
376 } // namespace blink 373 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698