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

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

Issue 2842933003: CSS Motion Path: delete implementation of offset-rotation property (Closed)
Patch Set: remove offsetRotation from webexposed Created 3 years, 7 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 kDeprecationMessageSource, kWarningMessageLevel, message); 114 kDeprecationMessageSource, kWarningMessageLevel, message);
115 frame->Console().AddMessage(console_message); 115 frame->Console().AddMessage(console_message);
116 } 116 }
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 CSSPropertyOffsetRotation:
125 return replacedWillBeRemoved("offset-rotation", "offset-rotate", M58,
126 "6390764217040896");
127
128 default: 124 default:
129 return g_empty_string; 125 return g_empty_string;
130 } 126 }
131 } 127 }
132 128
133 void Deprecation::CountDeprecation(const LocalFrame* frame, 129 void Deprecation::CountDeprecation(const LocalFrame* frame,
134 UseCounter::Feature feature) { 130 UseCounter::Feature feature) {
135 if (!frame) 131 if (!frame)
136 return; 132 return;
137 Page* page = frame->GetPage(); 133 Page* page = frame->GetPage();
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 return willBeRemoved("SVGPathElement.getPathSegAtLength", M62, 420 return willBeRemoved("SVGPathElement.getPathSegAtLength", M62,
425 "5638783282184192"); 421 "5638783282184192");
426 422
427 // Features that aren't deprecated don't have a deprecation message. 423 // Features that aren't deprecated don't have a deprecation message.
428 default: 424 default:
429 return String(); 425 return String();
430 } 426 }
431 } 427 }
432 428
433 } // namespace blink 429 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698