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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutTextCombine.h

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef LineLayoutTextCombine_h 5 #ifndef LineLayoutTextCombine_h
6 #define LineLayoutTextCombine_h 6 #define LineLayoutTextCombine_h
7 7
8 #include "core/layout/LayoutTextCombine.h" 8 #include "core/layout/LayoutTextCombine.h"
9 #include "core/layout/api/LineLayoutText.h" 9 #include "core/layout/api/LineLayoutText.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class LineLayoutTextCombine : public LineLayoutText { 13 class LineLayoutTextCombine : public LineLayoutText {
14 public: 14 public:
15 explicit LineLayoutTextCombine(LayoutTextCombine* layoutTextCombine) 15 explicit LineLayoutTextCombine(LayoutTextCombine* layoutTextCombine)
16 : LineLayoutText(layoutTextCombine) {} 16 : LineLayoutText(layoutTextCombine) {}
17 17
18 explicit LineLayoutTextCombine(const LineLayoutItem& item) 18 explicit LineLayoutTextCombine(const LineLayoutItem& item)
19 : LineLayoutText(item) { 19 : LineLayoutText(item) {
20 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isCombineText()); 20 SECURITY_DCHECK(!item || item.isCombineText());
21 } 21 }
22 22
23 explicit LineLayoutTextCombine(std::nullptr_t) : LineLayoutText(nullptr) {} 23 explicit LineLayoutTextCombine(std::nullptr_t) : LineLayoutText(nullptr) {}
24 24
25 LineLayoutTextCombine() {} 25 LineLayoutTextCombine() {}
26 26
27 bool isCombined() const { return toTextCombine()->isCombined(); } 27 bool isCombined() const { return toTextCombine()->isCombined(); }
28 28
29 private: 29 private:
30 LayoutTextCombine* toTextCombine() { 30 LayoutTextCombine* toTextCombine() {
31 return toLayoutTextCombine(layoutObject()); 31 return toLayoutTextCombine(layoutObject());
32 } 32 }
33 33
34 const LayoutTextCombine* toTextCombine() const { 34 const LayoutTextCombine* toTextCombine() const {
35 return toLayoutTextCombine(layoutObject()); 35 return toLayoutTextCombine(layoutObject());
36 } 36 }
37 }; 37 };
38 38
39 } // namespace blink 39 } // namespace blink
40 40
41 #endif // LineLayoutTextCombine_h 41 #endif // LineLayoutTextCombine_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698