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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutText.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 LineLayoutText_h 5 #ifndef LineLayoutText_h
6 #define LineLayoutText_h 6 #define LineLayoutText_h
7 7
8 #include "core/layout/LayoutText.h" 8 #include "core/layout/LayoutText.h"
9 #include "core/layout/api/LineLayoutItem.h" 9 #include "core/layout/api/LineLayoutItem.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
11 #include "wtf/Forward.h" 11 #include "wtf/Forward.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class LayoutText; 15 class LayoutText;
16 16
17 class LineLayoutText : public LineLayoutItem { 17 class LineLayoutText : public LineLayoutItem {
18 public: 18 public:
19 explicit LineLayoutText(LayoutText* layoutObject) 19 explicit LineLayoutText(LayoutText* layoutObject)
20 : LineLayoutItem(layoutObject) {} 20 : LineLayoutItem(layoutObject) {}
21 21
22 explicit LineLayoutText(const LineLayoutItem& item) : LineLayoutItem(item) { 22 explicit LineLayoutText(const LineLayoutItem& item) : LineLayoutItem(item) {
23 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isText()); 23 SECURITY_DCHECK(!item || item.isText());
24 } 24 }
25 25
26 explicit LineLayoutText(std::nullptr_t) : LineLayoutItem(nullptr) {} 26 explicit LineLayoutText(std::nullptr_t) : LineLayoutItem(nullptr) {}
27 27
28 LineLayoutText() {} 28 LineLayoutText() {}
29 29
30 InlineTextBox* firstTextBox() const { return toText()->firstTextBox(); } 30 InlineTextBox* firstTextBox() const { return toText()->firstTextBox(); }
31 31
32 InlineTextBox* lastTextBox() const { return toText()->lastTextBox(); } 32 InlineTextBox* lastTextBox() const { return toText()->lastTextBox(); }
33 33
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 float minLogicalWidth() const { return toText()->minLogicalWidth(); } 114 float minLogicalWidth() const { return toText()->minLogicalWidth(); }
115 115
116 private: 116 private:
117 LayoutText* toText() { return toLayoutText(layoutObject()); } 117 LayoutText* toText() { return toLayoutText(layoutObject()); }
118 const LayoutText* toText() const { return toLayoutText(layoutObject()); } 118 const LayoutText* toText() const { return toLayoutText(layoutObject()); }
119 }; 119 };
120 120
121 } // namespace blink 121 } // namespace blink
122 122
123 #endif // LineLayoutText_h 123 #endif // LineLayoutText_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698