| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 "standard 'requestAnimationFrame' instead."; | 240 "standard 'requestAnimationFrame' instead."; |
| 241 | 241 |
| 242 case UseCounter::PrefixedCancelAnimationFrame: | 242 case UseCounter::PrefixedCancelAnimationFrame: |
| 243 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the " | 243 return "'webkitCancelAnimationFrame' is vendor-specific. Please use the " |
| 244 "standard 'cancelAnimationFrame' instead."; | 244 "standard 'cancelAnimationFrame' instead."; |
| 245 | 245 |
| 246 case UseCounter::PictureSourceSrc: | 246 case UseCounter::PictureSourceSrc: |
| 247 return "<source src> with a <picture> parent is invalid and therefore " | 247 return "<source src> with a <picture> parent is invalid and therefore " |
| 248 "ignored. Please use <source srcset> instead."; | 248 "ignored. Please use <source srcset> instead."; |
| 249 | 249 |
| 250 case UseCounter::RadioNameMatchingASCIICaseless: | |
| 251 case UseCounter::RadioNameMatchingCaseFolding: | |
| 252 return willBeRemoved( | |
| 253 "Case-insensitive matching for <input type=radio name=...>", M57, | |
| 254 "6165799291060224"); | |
| 255 | |
| 256 case UseCounter::ConsoleTimeline: | 250 case UseCounter::ConsoleTimeline: |
| 257 return replacedBy("'console.timeline'", "'console.time'"); | 251 return replacedBy("'console.timeline'", "'console.time'"); |
| 258 | 252 |
| 259 case UseCounter::ConsoleTimelineEnd: | 253 case UseCounter::ConsoleTimelineEnd: |
| 260 return replacedBy("'console.timelineEnd'", "'console.timeEnd'"); | 254 return replacedBy("'console.timelineEnd'", "'console.timeEnd'"); |
| 261 | 255 |
| 262 case UseCounter::XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: | 256 case UseCounter::XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: |
| 263 return "Synchronous XMLHttpRequest on the main thread is deprecated " | 257 return "Synchronous XMLHttpRequest on the main thread is deprecated " |
| 264 "because of its detrimental effects to the end user's experience. " | 258 "because of its detrimental effects to the end user's experience. " |
| 265 "For more help, check https://xhr.spec.whatwg.org/."; | 259 "For more help, check https://xhr.spec.whatwg.org/."; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 "redirected response. This will result in an error in %s.", | 409 "redirected response. This will result in an error in %s.", |
| 416 milestoneString(M59)); | 410 milestoneString(M59)); |
| 417 | 411 |
| 418 // Features that aren't deprecated don't have a deprecation message. | 412 // Features that aren't deprecated don't have a deprecation message. |
| 419 default: | 413 default: |
| 420 return String(); | 414 return String(); |
| 421 } | 415 } |
| 422 } | 416 } |
| 423 | 417 |
| 424 } // namespace blink | 418 } // namespace blink |
| OLD | NEW |