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/LocalFrame.h" | 10 #include "core/frame/LocalFrame.h" |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 419 |
420 case UseCounter::V8IDBFactory_WebkitGetDatabaseNames_Method: | 420 case UseCounter::V8IDBFactory_WebkitGetDatabaseNames_Method: |
421 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60, | 421 return willBeRemoved("indexedDB.webkitGetDatabaseNames()", M60, |
422 "5725741740195840"); | 422 "5725741740195840"); |
423 | 423 |
424 case UseCounter::ChildSrcAllowedWorkerThatScriptSrcBlocked: | 424 case UseCounter::ChildSrcAllowedWorkerThatScriptSrcBlocked: |
425 return replacedWillBeRemoved("The 'child-src' directive", | 425 return replacedWillBeRemoved("The 'child-src' directive", |
426 "the 'script-src' directive for Workers", | 426 "the 'script-src' directive for Workers", |
427 M60, "5922594955984896"); | 427 M60, "5922594955984896"); |
428 | 428 |
| 429 case UseCounter::DeprecatedWebKitLinearGradient: |
| 430 return replacedBy("-webkit-linear-gradient", "linear-gradient"); |
| 431 |
| 432 case UseCounter::DeprecatedWebKitRepeatingLinearGradient: |
| 433 return replacedBy("-webkit-repeating-linear-gradient", |
| 434 "repeating-linear-gradient"); |
| 435 |
| 436 case UseCounter::DeprecatedWebKitGradient: |
| 437 return replacedBy("-webkit-gradient", |
| 438 "linear-gradient or radial-gradient"); |
| 439 |
| 440 case UseCounter::DeprecatedWebKitRadialGradient: |
| 441 return replacedBy("-webkit-radial-gradient", "radial-gradient"); |
| 442 |
| 443 case UseCounter::DeprecatedWebKitRepeatingRadialGradient: |
| 444 return replacedBy("-webkit-repeating-radial-gradient", |
| 445 "repeating-radial-gradient"); |
| 446 |
429 // Features that aren't deprecated don't have a deprecation message. | 447 // Features that aren't deprecated don't have a deprecation message. |
430 default: | 448 default: |
431 return String(); | 449 return String(); |
432 } | 450 } |
433 } | 451 } |
434 | 452 |
435 } // namespace blink | 453 } // namespace blink |
OLD | NEW |