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

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

Issue 2776073004: Add removal date to ::shadow and /deep/ (Closed)
Patch Set: wip Created 3 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
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/v0/closed-mode-deep-combinator-and-shadow-pseudo-expected.txt ('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 // 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/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 "https://goo.gl/rStTGz for more details.", 357 "https://goo.gl/rStTGz for more details.",
358 milestoneString(M60)); 358 milestoneString(M60));
359 359
360 case UseCounter::ElementCreateShadowRootMultiple: 360 case UseCounter::ElementCreateShadowRootMultiple:
361 return "Calling Element.createShadowRoot() for an element which already " 361 return "Calling Element.createShadowRoot() for an element which already "
362 "hosts a shadow root is deprecated. See " 362 "hosts a shadow root is deprecated. See "
363 "https://www.chromestatus.com/features/4668884095336448 for more " 363 "https://www.chromestatus.com/features/4668884095336448 for more "
364 "details."; 364 "details.";
365 365
366 case UseCounter::CSSDeepCombinator: 366 case UseCounter::CSSDeepCombinator:
367 return "/deep/ combinator is deprecated. See " 367 return String::format(
368 "https://www.chromestatus.com/features/6750456638341120 for more " 368 "/deep/ combinator is deprecated and will be a no-op in %s. See "
369 "details."; 369 "https://www.chromestatus.com/features/4964279606312960 for more "
370 "details.",
371 milestoneString(M60));
370 372
371 case UseCounter::CSSSelectorPseudoShadow: 373 case UseCounter::CSSSelectorPseudoShadow:
372 return "::shadow pseudo-element is deprecated. See " 374 return willBeRemoved("::shadow pseudo-element", M60, "6750456638341120");
373 "https://www.chromestatus.com/features/6750456638341120 for more "
374 "details.";
375 375
376 case UseCounter::VRDeprecatedFieldOfView: 376 case UseCounter::VRDeprecatedFieldOfView:
377 return replacedBy("VREyeParameters.fieldOfView", 377 return replacedBy("VREyeParameters.fieldOfView",
378 "projection matrices provided by VRFrameData"); 378 "projection matrices provided by VRFrameData");
379 379
380 case UseCounter::VRDeprecatedGetPose: 380 case UseCounter::VRDeprecatedGetPose:
381 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()"); 381 return replacedBy("VRDisplay.getPose()", "VRDisplay.getFrameData()");
382 382
383 case UseCounter:: 383 case UseCounter::
384 ServiceWorkerRespondToNavigationRequestWithRedirectedResponse: 384 ServiceWorkerRespondToNavigationRequestWithRedirectedResponse:
(...skipping 17 matching lines...) Expand all
402 return "The behavior that Selection.addRange() merges existing Range and " 402 return "The behavior that Selection.addRange() merges existing Range and "
403 "the specified Range was removed. See " 403 "the specified Range was removed. See "
404 "https://www.chromestatus.com/features/6680566019653632 for more " 404 "https://www.chromestatus.com/features/6680566019653632 for more "
405 "details."; 405 "details.";
406 406
407 case UseCounter::SubtleCryptoOnlyStrictSecureContextCheckFailed: 407 case UseCounter::SubtleCryptoOnlyStrictSecureContextCheckFailed:
408 return String::format( 408 return String::format(
409 "Web Crypto API usage inside secure frames with non-secure ancestors " 409 "Web Crypto API usage inside secure frames with non-secure ancestors "
410 "is deprecated. The API will no longer be exposed in these contexts " 410 "is deprecated. The API will no longer be exposed in these contexts "
411 "as of %s. See https://www.chromestatus.com/features/5030265697075200" 411 "as of %s. See https://www.chromestatus.com/features/5030265697075200"
412 " for more details.", milestoneString(M59)); 412 " for more details.",
413 milestoneString(M59));
413 414
414 case UseCounter::RtcpMuxPolicyNegotiate: 415 case UseCounter::RtcpMuxPolicyNegotiate:
415 return String::format( 416 return String::format(
416 "The rtcpMuxPolicy option is being considered for " 417 "The rtcpMuxPolicy option is being considered for "
417 "removal and may be removed no earlier than %s. If you depend on it, " 418 "removal and may be removed no earlier than %s. If you depend on it, "
418 "please see https://www.chromestatus.com/features/5654810086866944 " 419 "please see https://www.chromestatus.com/features/5654810086866944 "
419 "for more details.", 420 "for more details.",
420 milestoneString(M60)); 421 milestoneString(M60));
421 422
422 case UseCounter::V8IDBFactory_WebkitGetDatabaseNames_Method: 423 case UseCounter::V8IDBFactory_WebkitGetDatabaseNames_Method:
423 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60, 424 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60,
424 "5725741740195840"); 425 "5725741740195840");
425 426
426 case UseCounter::ChildSrcAllowedWorkerThatScriptSrcBlocked: 427 case UseCounter::ChildSrcAllowedWorkerThatScriptSrcBlocked:
427 return replacedWillBeRemoved("The 'child-src' directive", 428 return replacedWillBeRemoved("The 'child-src' directive",
428 "the 'script-src' directive for Workers", 429 "the 'script-src' directive for Workers",
429 M60, "5922594955984896"); 430 M60, "5922594955984896");
430 431
431 // Features that aren't deprecated don't have a deprecation message. 432 // Features that aren't deprecated don't have a deprecation message.
432 default: 433 default:
433 return String(); 434 return String();
434 } 435 }
435 } 436 }
436 437
437 } // namespace blink 438 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/v0/closed-mode-deep-combinator-and-shadow-pseudo-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698