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

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

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 10 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/FrameHost.h" 10 #include "core/frame/FrameHost.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 case CSSPropertyAliasMotionPath: 123 case CSSPropertyAliasMotionPath:
124 return replacedWillBeRemoved("motion-path", "offset-path", M58, 124 return replacedWillBeRemoved("motion-path", "offset-path", M58,
125 "6390764217040896"); 125 "6390764217040896");
126 case CSSPropertyMotion: 126 case CSSPropertyMotion:
127 return replacedWillBeRemoved("motion", "offset", M58, "6390764217040896"); 127 return replacedWillBeRemoved("motion", "offset", M58, "6390764217040896");
128 case CSSPropertyOffsetRotation: 128 case CSSPropertyOffsetRotation:
129 return replacedWillBeRemoved("offset-rotation", "offset-rotate", M58, 129 return replacedWillBeRemoved("offset-rotation", "offset-rotate", M58,
130 "6390764217040896"); 130 "6390764217040896");
131 131
132 default: 132 default:
133 return emptyString(); 133 return emptyString;
134 } 134 }
135 } 135 }
136 136
137 void Deprecation::countDeprecation(const LocalFrame* frame, 137 void Deprecation::countDeprecation(const LocalFrame* frame,
138 UseCounter::Feature feature) { 138 UseCounter::Feature feature) {
139 if (!frame) 139 if (!frame)
140 return; 140 return;
141 FrameHost* host = frame->host(); 141 FrameHost* host = frame->host();
142 if (!host || host->deprecation().m_muteCount) 142 if (!host || host->deprecation().m_muteCount)
143 return; 143 return;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 "-internal-media-controls-text-track-list* selectors", M59, 425 "-internal-media-controls-text-track-list* selectors", M59,
426 "5661431349379072"); 426 "5661431349379072");
427 427
428 // Features that aren't deprecated don't have a deprecation message. 428 // Features that aren't deprecated don't have a deprecation message.
429 default: 429 default:
430 return String(); 430 return String();
431 } 431 }
432 } 432 }
433 433
434 } // namespace blink 434 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/InputEvent.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698