| OLD | NEW |
| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 | 326 |
| 327 case UseCounter::ElementCreateShadowRootMultiple: | 327 case UseCounter::ElementCreateShadowRootMultiple: |
| 328 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."; | 328 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."; |
| 329 | 329 |
| 330 case UseCounter::CSSDeepCombinator: | 330 case UseCounter::CSSDeepCombinator: |
| 331 return "/deep/ combinator is deprecated. See https://www.chromestatus.co
m/features/6750456638341120 for more details."; | 331 return "/deep/ combinator is deprecated. See https://www.chromestatus.co
m/features/6750456638341120 for more details."; |
| 332 | 332 |
| 333 case UseCounter::CSSSelectorPseudoShadow: | 333 case UseCounter::CSSSelectorPseudoShadow: |
| 334 return "::shadow pseudo-element is deprecated. See https://www.chromesta
tus.com/features/6750456638341120 for more details."; | 334 return "::shadow pseudo-element is deprecated. See https://www.chromesta
tus.com/features/6750456638341120 for more details."; |
| 335 | 335 |
| 336 case UseCounter::SVGSMILElementInDocument: | |
| 337 case UseCounter::SVGSMILAnimationInImageRegardlessOfCache: | |
| 338 return "SVG's SMIL animations (<animate>, <set>, etc.) are deprecated an
d will be removed. Please use CSS animations or Web animations instead."; | |
| 339 | |
| 340 case UseCounter::PrefixedPerformanceClearResourceTimings: | 336 case UseCounter::PrefixedPerformanceClearResourceTimings: |
| 341 return replacedBy("'Performance.webkitClearResourceTimings'", "'Performa
nce.clearResourceTimings'"); | 337 return replacedBy("'Performance.webkitClearResourceTimings'", "'Performa
nce.clearResourceTimings'"); |
| 342 | 338 |
| 343 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: | 339 case UseCounter::PrefixedPerformanceSetResourceTimingBufferSize: |
| 344 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", "'P
erformance.setResourceTimingBufferSize'"); | 340 return replacedBy("'Performance.webkitSetResourceTimingBufferSize'", "'P
erformance.setResourceTimingBufferSize'"); |
| 345 | 341 |
| 346 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: | 342 case UseCounter::PrefixedPerformanceResourceTimingBufferFull: |
| 347 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); | 343 return replacedBy("'Performance.onwebkitresourcetimingbufferfull'", "'Pe
rformance.onresourcetimingbufferfull'"); |
| 348 | 344 |
| 349 case UseCounter::MediaStreamTrackGetSources: | 345 case UseCounter::MediaStreamTrackGetSources: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: | 387 case UseCounter::V8SVGSVGElement_Viewport_AttributeGetter: |
| 392 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); | 388 return willBeRemoved("SVGSVGElement.viewport", 55, "5686865248124928"); |
| 393 | 389 |
| 394 // Features that aren't deprecated don't have a deprecation message. | 390 // Features that aren't deprecated don't have a deprecation message. |
| 395 default: | 391 default: |
| 396 return String(); | 392 return String(); |
| 397 } | 393 } |
| 398 } | 394 } |
| 399 | 395 |
| 400 } // namespace blink | 396 } // namespace blink |
| OLD | NEW |