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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutInline.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 LineLayoutInline_h 5 #ifndef LineLayoutInline_h
6 #define LineLayoutInline_h 6 #define LineLayoutInline_h
7 7
8 #include "core/layout/LayoutInline.h" 8 #include "core/layout/LayoutInline.h"
9 #include "core/layout/api/LineLayoutBoxModel.h" 9 #include "core/layout/api/LineLayoutBoxModel.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ComputedStyle; 14 class ComputedStyle;
15 class LayoutInline; 15 class LayoutInline;
16 class LayoutObject; 16 class LayoutObject;
17 17
18 class LineLayoutInline : public LineLayoutBoxModel { 18 class LineLayoutInline : public LineLayoutBoxModel {
19 public: 19 public:
20 explicit LineLayoutInline(LayoutInline* layoutInline) 20 explicit LineLayoutInline(LayoutInline* layoutInline)
21 : LineLayoutBoxModel(layoutInline) {} 21 : LineLayoutBoxModel(layoutInline) {}
22 22
23 explicit LineLayoutInline(const LineLayoutItem& item) 23 explicit LineLayoutInline(const LineLayoutItem& item)
24 : LineLayoutBoxModel(item) { 24 : LineLayoutBoxModel(item) {
25 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isLayoutInline()); 25 SECURITY_DCHECK(!item || item.isLayoutInline());
26 } 26 }
27 27
28 explicit LineLayoutInline(std::nullptr_t) : LineLayoutBoxModel(nullptr) {} 28 explicit LineLayoutInline(std::nullptr_t) : LineLayoutBoxModel(nullptr) {}
29 29
30 LineLayoutInline() {} 30 LineLayoutInline() {}
31 31
32 LineLayoutItem firstChild() const { 32 LineLayoutItem firstChild() const {
33 return LineLayoutItem(toInline()->firstChild()); 33 return LineLayoutItem(toInline()->firstChild());
34 } 34 }
35 35
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 LayoutInline* toInline() { return toLayoutInline(layoutObject()); } 88 LayoutInline* toInline() { return toLayoutInline(layoutObject()); }
89 89
90 const LayoutInline* toInline() const { 90 const LayoutInline* toInline() const {
91 return toLayoutInline(layoutObject()); 91 return toLayoutInline(layoutObject());
92 } 92 }
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif // LineLayoutInline_h 97 #endif // LineLayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698