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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 "%s is deprecated and will be removed in %s. Please use %s instead. See " | 65 "%s is deprecated and will be removed in %s. Please use %s instead. See " |
66 "https://www.chromestatus.com/features/%s for more details.", | 66 "https://www.chromestatus.com/features/%s for more details.", |
67 feature, milestoneString(milestone), replacement, details); | 67 feature, milestoneString(milestone), replacement, details); |
68 } | 68 } |
69 | 69 |
70 } // anonymous namespace | 70 } // anonymous namespace |
71 | 71 |
72 namespace blink { | 72 namespace blink { |
73 | 73 |
74 Deprecation::Deprecation() : m_muteCount(0) { | 74 Deprecation::Deprecation() : m_muteCount(0) { |
75 m_cssPropertyDeprecationBits.ensureSize(lastUnresolvedCSSProperty + 1); | 75 m_cssPropertyDeprecationBits.ensureSize(numCSSPropertyIDs); |
76 } | 76 } |
77 | 77 |
78 Deprecation::~Deprecation() {} | 78 Deprecation::~Deprecation() {} |
79 | 79 |
80 void Deprecation::clearSuppression() { | 80 void Deprecation::clearSuppression() { |
81 m_cssPropertyDeprecationBits.clearAll(); | 81 m_cssPropertyDeprecationBits.clearAll(); |
82 } | 82 } |
83 | 83 |
84 void Deprecation::muteForInspector() { | 84 void Deprecation::muteForInspector() { |
85 m_muteCount++; | 85 m_muteCount++; |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 "the specified Range", | 423 "the specified Range", |
424 M58, "6680566019653632"); | 424 M58, "6680566019653632"); |
425 | 425 |
426 // Features that aren't deprecated don't have a deprecation message. | 426 // Features that aren't deprecated don't have a deprecation message. |
427 default: | 427 default: |
428 return String(); | 428 return String(); |
429 } | 429 } |
430 } | 430 } |
431 | 431 |
432 } // namespace blink | 432 } // namespace blink |
OLD | NEW |