| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 117 } |
| 118 | 118 |
| 119 String Deprecation::DeprecationMessage(CSSPropertyID unresolved_property) { | 119 String Deprecation::DeprecationMessage(CSSPropertyID unresolved_property) { |
| 120 switch (unresolved_property) { | 120 switch (unresolved_property) { |
| 121 case CSSPropertyAliasMotionOffset: | 121 case CSSPropertyAliasMotionOffset: |
| 122 return replacedWillBeRemoved("motion-offset", "offset-distance", M58, | 122 return replacedWillBeRemoved("motion-offset", "offset-distance", M58, |
| 123 "6390764217040896"); | 123 "6390764217040896"); |
| 124 case CSSPropertyAliasMotionRotation: | 124 case CSSPropertyAliasMotionRotation: |
| 125 return replacedWillBeRemoved("motion-rotation", "offset-rotate", M58, | 125 return replacedWillBeRemoved("motion-rotation", "offset-rotate", M58, |
| 126 "6390764217040896"); | 126 "6390764217040896"); |
| 127 case CSSPropertyAliasMotionPath: | |
| 128 return replacedWillBeRemoved("motion-path", "offset-path", M58, | |
| 129 "6390764217040896"); | |
| 130 case CSSPropertyOffsetRotation: | 127 case CSSPropertyOffsetRotation: |
| 131 return replacedWillBeRemoved("offset-rotation", "offset-rotate", M58, | 128 return replacedWillBeRemoved("offset-rotation", "offset-rotate", M58, |
| 132 "6390764217040896"); | 129 "6390764217040896"); |
| 133 | 130 |
| 134 default: | 131 default: |
| 135 return g_empty_string; | 132 return g_empty_string; |
| 136 } | 133 } |
| 137 } | 134 } |
| 138 | 135 |
| 139 void Deprecation::CountDeprecation(const LocalFrame* frame, | 136 void Deprecation::CountDeprecation(const LocalFrame* frame, |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 return willBeRemoved("RTCPeerConnection.getStreamById()", M62, | 443 return willBeRemoved("RTCPeerConnection.getStreamById()", M62, |
| 447 "5751819573657600"); | 444 "5751819573657600"); |
| 448 | 445 |
| 449 // Features that aren't deprecated don't have a deprecation message. | 446 // Features that aren't deprecated don't have a deprecation message. |
| 450 default: | 447 default: |
| 451 return String(); | 448 return String(); |
| 452 } | 449 } |
| 453 } | 450 } |
| 454 | 451 |
| 455 } // namespace blink | 452 } // namespace blink |
| OLD | NEW |